algo.h revision 132720
1204431Sraj// Backward-compat support -*- C++ -*- 2204431Sraj 3204431Sraj// Copyright (C) 2001 Free Software Foundation, Inc. 4204431Sraj// 5204431Sraj// This file is part of the GNU ISO C++ Library. This library is free 6204431Sraj// software; you can redistribute it and/or modify it under the 7204431Sraj// terms of the GNU General Public License as published by the 8204431Sraj// Free Software Foundation; either version 2, or (at your option) 9204431Sraj// any later version. 10204431Sraj 11204431Sraj// This library is distributed in the hope that it will be useful, 12204431Sraj// but WITHOUT ANY WARRANTY; without even the implied warranty of 13204431Sraj// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14204431Sraj// GNU General Public License for more details. 15204431Sraj 16204431Sraj// You should have received a copy of the GNU General Public License along 17204431Sraj// with this library; see the file COPYING. If not, write to the Free 18204431Sraj// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, 19204431Sraj// USA. 20204431Sraj 21204431Sraj// As a special exception, you may use this file as part of a free software 22204431Sraj// library without restriction. Specifically, if other files instantiate 23204431Sraj// templates or use macros or inline functions from this file, or you compile 24204431Sraj// this file and link it with other files to produce an executable, this 25204431Sraj// file does not by itself cause the resulting executable to be covered by 26204431Sraj// the GNU General Public License. This exception does not however 27204431Sraj// invalidate any other reasons why the executable file might be covered by 28204431Sraj// the GNU General Public License. 29204431Sraj 30204431Sraj/* 31204433Sraj * 32204431Sraj * Copyright (c) 1994 33204431Sraj * Hewlett-Packard Company 34204431Sraj * 35204431Sraj * Permission to use, copy, modify, distribute and sell this software 36204431Sraj * and its documentation for any purpose is hereby granted without fee, 37204431Sraj * provided that the above copyright notice appear in all copies and 38204431Sraj * that both that copyright notice and this permission notice appear 39204431Sraj * in supporting documentation. Hewlett-Packard Company makes no 40204431Sraj * representations about the suitability of this software for any 41204431Sraj * purpose. It is provided "as is" without express or implied warranty. 42204431Sraj * 43204431Sraj * 44204431Sraj * Copyright (c) 1996,1997 45204431Sraj * Silicon Graphics Computer Systems, Inc. 46204431Sraj * 47204431Sraj * Permission to use, copy, modify, distribute and sell this software 48204431Sraj * and its documentation for any purpose is hereby granted without fee, 49204431Sraj * provided that the above copyright notice appear in all copies and 50261215Simp * that both that copyright notice and this permission notice appear 51261215Simp * in supporting documentation. Silicon Graphics makes no 52261215Simp * representations about the suitability of this software for any 53261215Simp * purpose. It is provided "as is" without express or implied warranty. 54261215Simp */ 55261215Simp 56261215Simp#ifndef _BACKWARD_ALGO_H 57261215Simp#define _BACKWARD_ALGO_H 1 58261215Simp 59261215Simp#include "backward_warning.h" 60261215Simp#include "algobase.h" 61261215Simp#include "tempbuf.h" 62261215Simp#include "iterator.h" 63261215Simp#include <bits/stl_algo.h> 64261215Simp#include <bits/stl_numeric.h> 65261215Simp#include <ext/algorithm> 66261215Simp#include <ext/numeric> 67261215Simp 68261215Simp// Names from <stl_algo.h> 69261215Simpusing std::for_each; 70261215Simpusing std::find; 71261215Simpusing std::find_if; 72261215Simpusing std::adjacent_find; 73261215Simpusing std::count; 74261215Simpusing std::count_if; 75261215Simpusing std::search; 76261215Simpusing std::search_n; 77261215Simpusing std::swap_ranges; 78261215Simpusing std::transform; 79261215Simpusing std::replace; 80261215Simpusing std::replace_if; 81261215Simpusing std::replace_copy; 82261215Simpusing std::replace_copy_if; 83261215Simpusing std::generate; 84261215Simpusing std::generate_n; 85261215Simpusing std::remove; 86261215Simpusing std::remove_if; 87261215Simpusing std::remove_copy; 88261215Simpusing std::remove_copy_if; 89261215Simpusing std::unique; 90261215Simpusing std::unique_copy; 91261215Simpusing std::reverse; 92261215Simpusing std::reverse_copy; 93261215Simpusing std::rotate; 94261215Simpusing std::rotate_copy; 95261215Simpusing std::random_shuffle; 96261215Simpusing std::partition; 97261215Simpusing std::stable_partition; 98261215Simpusing std::sort; 99261215Simpusing std::stable_sort; 100261215Simpusing std::partial_sort; 101261215Simpusing std::partial_sort_copy; 102261215Simpusing std::nth_element; 103261215Simpusing std::lower_bound; 104204431Srajusing std::upper_bound; 105204431Srajusing std::equal_range; 106204431Srajusing std::binary_search; 107204431Srajusing std::merge; 108204431Srajusing std::inplace_merge; 109204431Srajusing std::includes; 110204431Srajusing std::set_union; 111238742Simpusing std::set_intersection; 112261215Simpusing std::set_difference; 113204431Srajusing std::set_symmetric_difference; 114204431Srajusing std::min_element; 115204431Srajusing std::max_element; 116204431Srajusing std::next_permutation; 117204431Srajusing std::prev_permutation; 118204431Srajusing std::find_first_of; 119204431Srajusing std::find_end; 120204431Sraj 121204431Sraj// Names from stl_heap.h 122204431Srajusing std::push_heap; 123204431Srajusing std::pop_heap; 124261215Simpusing std::make_heap; 125204431Srajusing std::sort_heap; 126204431Sraj 127204431Sraj// Names from stl_numeric.h 128204431Srajusing std::accumulate; 129204431Srajusing std::inner_product; 130204431Srajusing std::partial_sum; 131204431Srajusing std::adjacent_difference; 132204431Sraj 133204431Sraj// Names from ext/algorithm 134204431Srajusing __gnu_cxx::random_sample; 135204431Srajusing __gnu_cxx::random_sample_n; 136204431Srajusing __gnu_cxx::is_sorted; 137204431Srajusing __gnu_cxx::is_heap; 138238742Simpusing __gnu_cxx::count; // Extension returning void 139238742Simpusing __gnu_cxx::count_if; // Extension returning void 140238742Simp 141204431Sraj// Names from ext/numeric 142204431Srajusing __gnu_cxx::power; 143204431Srajusing __gnu_cxx::iota; 144204431Sraj 145204431Sraj#endif /* _BACKWARD_ALGO_H */ 146204431Sraj 147204431Sraj// Local Variables: 148204431Sraj// mode:C++ 149204431Sraj// End: 150204431Sraj