Skip to content

Commit f06dc42

Browse files
committed
In cxx14, remove unnecessary #include <algorithm> and correct some comments
1 parent 1da90fc commit f06dc42

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

include/boost/algorithm/cxx14/equal.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
#define BOOST_ALGORITHM_EQUAL_HPP
1414

1515
#include <algorithm> // for std::equal
16-
#include <functional> // for std::equal_to
16+
#include <functional> // for std::binary_function
17+
#include <iterator>
1718

1819
namespace boost { namespace algorithm {
1920

include/boost/algorithm/cxx14/is_permutation.hpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
#ifndef BOOST_ALGORITHM_IS_PERMUTATION14_HPP
1313
#define BOOST_ALGORITHM_IS_PERMUTATION14_HPP
1414

15-
#include <algorithm> // for std::less, tie, mismatch and is_permutation (if available)
16-
#include <utility> // for std::make_pair
15+
#include <utility> // for std::pair
1716
#include <functional> // for std::equal_to
1817
#include <iterator>
1918

@@ -31,8 +30,6 @@ namespace boost { namespace algorithm {
3130
/// \param first2 The start of the second sequence
3231
/// \param last1 One past the end of the second sequence
3332
/// \note This function is part of the C++2014 standard library.
34-
/// We will use the standard one if it is available,
35-
/// otherwise we have our own implementation.
3633
template< class ForwardIterator1, class ForwardIterator2 >
3734
bool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1,
3835
ForwardIterator2 first2, ForwardIterator2 last2 )
@@ -62,8 +59,6 @@ bool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1,
6259
/// \param pred The predicate to compare elements with
6360
///
6461
/// \note This function is part of the C++2014 standard library.
65-
/// We will use the standard one if it is available,
66-
/// otherwise we have our own implementation.
6762
template< class ForwardIterator1, class ForwardIterator2, class BinaryPredicate >
6863
bool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1,
6964
ForwardIterator2 first2, ForwardIterator2 last2,

include/boost/algorithm/cxx14/mismatch.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#ifndef BOOST_ALGORITHM_MISMATCH_HPP
1313
#define BOOST_ALGORITHM_MISMATCH_HPP
1414

15-
#include <algorithm> // for std::mismatch
1615
#include <utility> // for std::pair
1716

1817
namespace boost { namespace algorithm {

0 commit comments

Comments
 (0)