forked from boostorg/algorithm
		
	[SVN r80670]
This commit is contained in:
		| @@ -39,7 +39,7 @@ OutputIterator copy_if ( InputIterator first, InputIterator last, OutputIterator | ||||
| { | ||||
|     for ( ; first != last; ++first ) | ||||
|         if (p(*first)) | ||||
|             *result++ = first; | ||||
|             *result++ = *first; | ||||
|     return result; | ||||
| } | ||||
| #endif | ||||
| @@ -75,7 +75,7 @@ OutputIterator copy_while ( InputIterator first, InputIterator last, | ||||
|                                 OutputIterator result, Predicate p ) | ||||
| { | ||||
|     for ( ; first != last && p(*first); ++first ) | ||||
|         *result++ = first; | ||||
|         *result++ = *first; | ||||
|     return result; | ||||
| } | ||||
|  | ||||
| @@ -109,7 +109,7 @@ template<typename InputIterator, typename OutputIterator, typename Predicate> | ||||
| OutputIterator copy_until ( InputIterator first, InputIterator last, OutputIterator result, Predicate p ) | ||||
| { | ||||
|     for ( ; first != last && !p(*first); ++first ) | ||||
|         *result++ = first; | ||||
|         *result++ = *first; | ||||
|     return result; | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -46,7 +46,7 @@ namespace detail { | ||||
|  | ||||
|  | ||||
| /// \fn is_permutation ( ForwardIterator1 first, ForwardIterator1 last, ForwardIterator2 first2, BinaryPredicate p ) | ||||
| /// \brief Tests to see if a the sequence [first,last) is a permutation of the sequence starting at first2 | ||||
| /// \brief Tests to see if the sequence [first,last) is a permutation of the sequence starting at first2 | ||||
| /// | ||||
| /// \param first    The start of the input sequence | ||||
| /// \param last     One past the end of the input sequence | ||||
| @@ -88,7 +88,7 @@ bool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1, | ||||
| } | ||||
|  | ||||
| /// \fn is_permutation ( ForwardIterator1 first, ForwardIterator1 last, ForwardIterator2 first2 ) | ||||
| /// \brief Tests to see if a the sequence [first,last) is a permutation of the sequence starting at first2 | ||||
| /// \brief Tests to see if the sequence [first,last) is a permutation of the sequence starting at first2 | ||||
| /// | ||||
| /// \param first    The start of the input sequence | ||||
| /// \param last     One past the end of the input sequence | ||||
| @@ -108,7 +108,7 @@ bool is_permutation ( ForwardIterator1 first, ForwardIterator1 last, ForwardIter | ||||
| #endif | ||||
|  | ||||
| /// \fn is_permutation ( const Range &r, ForwardIterator first2 ) | ||||
| /// \brief Tests to see if a the sequence [first,last) is a permutation of the sequence starting at first2 | ||||
| /// \brief Tests to see if the sequence [first,last) is a permutation of the sequence starting at first2 | ||||
| /// | ||||
| /// \param r        The input range | ||||
| /// \param first2   The start of the second sequence | ||||
| @@ -119,7 +119,7 @@ bool is_permutation ( const Range &r, ForwardIterator first2 ) | ||||
| } | ||||
|  | ||||
| /// \fn is_permutation ( const Range &r, ForwardIterator first2, BinaryPredicate pred ) | ||||
| /// \brief Tests to see if a the sequence [first,last) is a permutation of the sequence starting at first2 | ||||
| /// \brief Tests to see if the sequence [first,last) is a permutation of the sequence starting at first2 | ||||
| /// | ||||
| /// \param r        The input range | ||||
| /// \param first2   The start of the second sequence | ||||
|   | ||||
| @@ -14,6 +14,11 @@ | ||||
|  | ||||
| #include <boost/assert.hpp> | ||||
| #include <boost/static_assert.hpp> | ||||
|  | ||||
| #include <boost/range/begin.hpp> | ||||
| #include <boost/range/end.hpp> | ||||
|  | ||||
| #include <boost/utility/enable_if.hpp> | ||||
| #include <boost/type_traits/is_same.hpp> | ||||
|  | ||||
| #include <boost/algorithm/searching/detail/bm_traits.hpp> | ||||
|   | ||||
| @@ -15,6 +15,11 @@ | ||||
|  | ||||
| #include <boost/assert.hpp> | ||||
| #include <boost/static_assert.hpp> | ||||
|  | ||||
| #include <boost/range/begin.hpp> | ||||
| #include <boost/range/end.hpp> | ||||
|  | ||||
| #include <boost/utility/enable_if.hpp> | ||||
| #include <boost/type_traits/is_same.hpp> | ||||
|  | ||||
| #include <boost/algorithm/searching/detail/debugging.hpp> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user