Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:59:19

0001 ///////////////////////////////////////////////////////////////////////////////
0002 /// \file algorithm.hpp
0003 ///   Includes the range-based versions of the algorithms in the
0004 ///   C++ standard header file <algorithm>
0005 //
0006 /////////////////////////////////////////////////////////////////////////////
0007 
0008 // Copyright 2009 Neil Groves.
0009 // Distributed under the Boost Software License, Version 1.0. (See
0010 // accompanying file LICENSE_1_0.txt or copy at
0011 // http://www.boost.org/LICENSE_1_0.txt)
0012 //
0013 // Acknowledgements:
0014 // This code uses combinations of ideas, techniques and code snippets
0015 // from: Thorsten Ottosen, Eric Niebler, Jeremy Siek,
0016 // and Vladimir Prus'
0017 //
0018 // The original mutating algorithms that served as the first version
0019 // were originally written by Vladimir Prus'
0020 // <ghost@cs.msu.su> code from Boost Wiki
0021 
0022 #if defined(_MSC_VER)
0023 #pragma once
0024 #endif
0025 
0026 #ifndef BOOST_RANGE_ALGORITHM_HPP_INCLUDED_01012009
0027 #define BOOST_RANGE_ALGORITHM_HPP_INCLUDED_01012009
0028 
0029 #include <boost/range/concepts.hpp>
0030 #include <boost/range/iterator_range.hpp>
0031 #include <boost/range/difference_type.hpp>
0032 #include <boost/range/detail/range_return.hpp>
0033 #include <boost/iterator/iterator_traits.hpp>
0034 #include <boost/next_prior.hpp>
0035 #include <algorithm>
0036 
0037 // Non-mutating algorithms
0038 #include <boost/range/algorithm/adjacent_find.hpp>
0039 #include <boost/range/algorithm/count.hpp>
0040 #include <boost/range/algorithm/count_if.hpp>
0041 #include <boost/range/algorithm/equal.hpp>
0042 #include <boost/range/algorithm/for_each.hpp>
0043 #include <boost/range/algorithm/find.hpp>
0044 #include <boost/range/algorithm/find_end.hpp>
0045 #include <boost/range/algorithm/find_first_of.hpp>
0046 #include <boost/range/algorithm/find_if.hpp>
0047 #include <boost/range/algorithm/lexicographical_compare.hpp>
0048 #include <boost/range/algorithm/mismatch.hpp>
0049 #include <boost/range/algorithm/search.hpp>
0050 #include <boost/range/algorithm/search_n.hpp>
0051 
0052 // Mutating algorithms
0053 #include <boost/range/algorithm/copy.hpp>
0054 #include <boost/range/algorithm/copy_backward.hpp>
0055 #include <boost/range/algorithm/fill.hpp>
0056 #include <boost/range/algorithm/fill_n.hpp>
0057 #include <boost/range/algorithm/generate.hpp>
0058 #include <boost/range/algorithm/inplace_merge.hpp>
0059 #include <boost/range/algorithm/merge.hpp>
0060 #include <boost/range/algorithm/nth_element.hpp>
0061 #include <boost/range/algorithm/partial_sort.hpp>
0062 #include <boost/range/algorithm/partial_sort_copy.hpp>
0063 #include <boost/range/algorithm/partition.hpp>
0064 #include <boost/range/algorithm/random_shuffle.hpp>
0065 #include <boost/range/algorithm/remove.hpp>
0066 #include <boost/range/algorithm/remove_copy.hpp>
0067 #include <boost/range/algorithm/remove_copy_if.hpp>
0068 #include <boost/range/algorithm/remove_if.hpp>
0069 #include <boost/range/algorithm/replace.hpp>
0070 #include <boost/range/algorithm/replace_copy.hpp>
0071 #include <boost/range/algorithm/replace_copy_if.hpp>
0072 #include <boost/range/algorithm/replace_if.hpp>
0073 #include <boost/range/algorithm/reverse.hpp>
0074 #include <boost/range/algorithm/reverse_copy.hpp>
0075 #include <boost/range/algorithm/rotate.hpp>
0076 #include <boost/range/algorithm/rotate_copy.hpp>
0077 #include <boost/range/algorithm/sort.hpp>
0078 #include <boost/range/algorithm/stable_partition.hpp>
0079 #include <boost/range/algorithm/stable_sort.hpp>
0080 #include <boost/range/algorithm/transform.hpp>
0081 #include <boost/range/algorithm/unique.hpp>
0082 #include <boost/range/algorithm/unique_copy.hpp>
0083 
0084 // Binary search
0085 #include <boost/range/algorithm/binary_search.hpp>
0086 #include <boost/range/algorithm/equal_range.hpp>
0087 #include <boost/range/algorithm/lower_bound.hpp>
0088 #include <boost/range/algorithm/upper_bound.hpp>
0089 
0090 // Set operations of sorted ranges
0091 #include <boost/range/algorithm/set_algorithm.hpp>
0092 
0093 // Heap operations
0094 #include <boost/range/algorithm/heap_algorithm.hpp>
0095 
0096 // Minimum and Maximum
0097 #include <boost/range/algorithm/max_element.hpp>
0098 #include <boost/range/algorithm/min_element.hpp>
0099 
0100 // Permutations
0101 #include <boost/range/algorithm/permutation.hpp>
0102 
0103 #endif // include guard
0104