algo.h revision 97403
1149926Smarcel// Backward-compat support -*- C++ -*- 2149926Smarcel 3149926Smarcel// Copyright (C) 2001 Free Software Foundation, Inc. 4149926Smarcel// 5149926Smarcel// This file is part of the GNU ISO C++ Library. This library is free 6149926Smarcel// software; you can redistribute it and/or modify it under the 7149926Smarcel// terms of the GNU General Public License as published by the 8149926Smarcel// Free Software Foundation; either version 2, or (at your option) 9149926Smarcel// any later version. 10149926Smarcel 11149926Smarcel// This library is distributed in the hope that it will be useful, 12149926Smarcel// but WITHOUT ANY WARRANTY; without even the implied warranty of 13149926Smarcel// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14149926Smarcel// GNU General Public License for more details. 15149926Smarcel 16149926Smarcel// You should have received a copy of the GNU General Public License along 17149926Smarcel// with this library; see the file COPYING. If not, write to the Free 18149926Smarcel// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, 19149926Smarcel// USA. 20149926Smarcel 21149926Smarcel// As a special exception, you may use this file as part of a free software 22149926Smarcel// library without restriction. Specifically, if other files instantiate 23149926Smarcel// templates or use macros or inline functions from this file, or you compile 24149926Smarcel// this file and link it with other files to produce an executable, this 25149926Smarcel// file does not by itself cause the resulting executable to be covered by 26149926Smarcel// the GNU General Public License. This exception does not however 27149926Smarcel// invalidate any other reasons why the executable file might be covered by 28149926Smarcel// the GNU General Public License. 29268200Smarcel 30268200Smarcel/* 31149926Smarcel * 32149926Smarcel * Copyright (c) 1994 33149926Smarcel * Hewlett-Packard Company 34149926Smarcel * 35149926Smarcel * Permission to use, copy, modify, distribute and sell this software 36149926Smarcel * and its documentation for any purpose is hereby granted without fee, 37149926Smarcel * provided that the above copyright notice appear in all copies and 38149926Smarcel * that both that copyright notice and this permission notice appear 39149926Smarcel * in supporting documentation. Hewlett-Packard Company makes no 40149926Smarcel * representations about the suitability of this software for any 41149926Smarcel * purpose. It is provided "as is" without express or implied warranty. 42149926Smarcel * 43149926Smarcel * 44149926Smarcel * Copyright (c) 1996,1997 45149926Smarcel * Silicon Graphics Computer Systems, Inc. 46149926Smarcel * 47149926Smarcel * Permission to use, copy, modify, distribute and sell this software 48149926Smarcel * and its documentation for any purpose is hereby granted without fee, 49170474Smarcel * provided that the above copyright notice appear in all copies and 50149926Smarcel * that both that copyright notice and this permission notice appear 51149926Smarcel * in supporting documentation. Silicon Graphics makes no 52149926Smarcel * representations about the suitability of this software for any 53149926Smarcel * purpose. It is provided "as is" without express or implied warranty. 54149926Smarcel */ 55149926Smarcel 56149926Smarcel#ifndef _CPP_BACKWARD_ALGO_H 57149926Smarcel#define _CPP_BACKWARD_ALGO_H 1 58149926Smarcel 59149926Smarcel#include "backward_warning.h" 60149926Smarcel#include "algobase.h" 61149926Smarcel#include "tempbuf.h" 62149926Smarcel#include "iterator.h" 63149926Smarcel#include <bits/stl_algo.h> 64149926Smarcel#include <bits/stl_numeric.h> 65149926Smarcel#include <ext/algorithm> 66149926Smarcel#include <ext/numeric> 67149926Smarcel 68149926Smarcel// Names from <stl_algo.h> 69149926Smarcelusing std::for_each; 70149926Smarcelusing std::find; 71149926Smarcelusing std::find_if; 72149926Smarcelusing std::adjacent_find; 73149926Smarcelusing std::count; 74149926Smarcelusing std::count_if; 75149926Smarcelusing std::search; 76149926Smarcelusing std::search_n; 77149926Smarcelusing std::swap_ranges; 78149926Smarcelusing std::transform; 79149926Smarcelusing std::replace; 80149926Smarcelusing std::replace_if; 81149926Smarcelusing std::replace_copy; 82149926Smarcelusing std::replace_copy_if; 83149926Smarcelusing std::generate; 84149926Smarcelusing std::generate_n; 85149926Smarcelusing std::remove; 86149926Smarcelusing std::remove_if; 87149926Smarcelusing std::remove_copy; 88149926Smarcelusing std::remove_copy_if; 89149926Smarcelusing std::unique; 90149926Smarcelusing std::unique_copy; 91149926Smarcelusing std::reverse; 92149926Smarcelusing std::reverse_copy; 93149926Smarcelusing std::rotate; 94149926Smarcelusing std::rotate_copy; 95149926Smarcelusing std::random_shuffle; 96149926Smarcelusing std::partition; 97149926Smarcelusing std::stable_partition; 98149926Smarcelusing std::sort; 99149926Smarcelusing std::stable_sort; 100149926Smarcelusing std::partial_sort; 101149926Smarcelusing std::partial_sort_copy; 102149926Smarcelusing std::nth_element; 103149926Smarcelusing std::lower_bound; 104149926Smarcelusing std::upper_bound; 105149926Smarcelusing std::equal_range; 106149926Smarcelusing std::binary_search; 107149926Smarcelusing std::merge; 108149926Smarcelusing std::inplace_merge; 109149926Smarcelusing std::includes; 110149926Smarcelusing std::set_union; 111149926Smarcelusing std::set_intersection; 112149926Smarcelusing std::set_difference; 113149926Smarcelusing std::set_symmetric_difference; 114149926Smarcelusing std::min_element; 115149926Smarcelusing std::max_element; 116149926Smarcelusing std::next_permutation; 117149926Smarcelusing std::prev_permutation; 118149926Smarcelusing std::find_first_of; 119149926Smarcelusing std::find_end; 120149926Smarcel 121149926Smarcel// Names from stl_heap.h 122149926Smarcelusing std::push_heap; 123149926Smarcelusing std::pop_heap; 124149926Smarcelusing std::make_heap; 125149926Smarcelusing std::sort_heap; 126149926Smarcel 127149926Smarcel// Names from stl_numeric.h 128149926Smarcelusing std::accumulate; 129149926Smarcelusing std::inner_product; 130149926Smarcelusing std::partial_sum; 131149926Smarcelusing std::adjacent_difference; 132149926Smarcel 133149926Smarcel// Names from ext/algorithm 134149926Smarcelusing __gnu_cxx::random_sample; 135149926Smarcelusing __gnu_cxx::random_sample_n; 136149926Smarcelusing __gnu_cxx::is_sorted; 137149926Smarcelusing __gnu_cxx::is_heap; 138149926Smarcelusing __gnu_cxx::count; // Extension returning void 139149926Smarcelusing __gnu_cxx::count_if; // Extension returning void 140149926Smarcel 141149926Smarcel// Names from ext/numeric 142149926Smarcelusing __gnu_cxx::power; 143149926Smarcelusing __gnu_cxx::iota; 144149926Smarcel 145149926Smarcel#endif /* _CPP_BACKWARD_ALGO_H */ 146149926Smarcel 147149926Smarcel// Local Variables: 148149926Smarcel// mode:C++ 149149926Smarcel// End: 150149926Smarcel