Skip to content

Commit 3aef0ab

Browse files
committed
Merge pull request #17 from kundor/develop
Remove some includes, fix some comments and docs. Thanks! Please remind me in a week or so to merge to master; after the tests have cycled.
2 parents 795c6c6 + c11878c commit 3aef0ab

21 files changed

+14
-52
lines changed

doc/all_of.qbk

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ All of the variants of `all_of` and `all_of_equal` take their parameters by valu
7373

7474
[heading Notes]
7575

76-
* The routine `all_of` is part of the C++11 standard. When compiled using a C++11 implementation, the implementation from the standard library will be used.
76+
* The routine `all_of` is also available as part of the C++11 standard.
7777

7878
* `all_of` and `all_of_equal` both return true for empty ranges, no matter what is passed to test against. When there are no items in the sequence to test, they all satisfy the condition to be tested against.
7979

doc/any_of.qbk

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ All of the variants of `any_of` and `any_of_equal` take their parameters by valu
7373

7474
[heading Notes]
7575

76-
* The routine `any_of` is part of the C++11 standard. When compiled using a C++11 implementation, the implementation from the standard library will be used.
76+
* The routine `any_of` is also available as part of the C++11 standard.
7777

7878
* `any_of` and `any_of_equal` both return false for empty ranges, no matter what is passed to test against.
7979

doc/is_partitioned.qbk

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Both of the variants of `is_partitioned` take their parameters by value or const
5555

5656
[heading Notes]
5757

58-
* The iterator-based version of the routine `is_partitioned` is part of the C++11 standard. When compiled using a C++11 implementation, the implementation from the standard library will be used.
58+
* The iterator-based version of the routine `is_partitioned` is also available as part of the C++11 standard.
5959

6060
* `is_partitioned` returns true for empty ranges, no matter what predicate is passed to test against.
6161

doc/is_permutation.qbk

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ All of the variants of `is_permutation` take their parameters by value, and do n
7171

7272
[heading Notes]
7373

74-
* The three iterator versions of the routine `is_permutation` are part of the C++11 standard. When compiled using a C++11 implementation, the implementation from the standard library will be used.
74+
* The three iterator versions of the routine `is_permutation` are also available as part of the C++11 standard.
7575

7676
* The four iterator versions of the routine `is_permutation` are part of the proposed C++14 standard. When C++14 standard libraries become available, the implementation should be changed to use the implementation from the standard library (if available).
7777

doc/none_of.qbk

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ All of the variants of `none_of` and `none_of_equal` take their parameters by va
7474

7575
[heading Notes]
7676

77-
* The routine `none_of` is part of the C++11 standard. When compiled using a C++11 implementation, the implementation from the standard library will be used.
77+
* The routine `none_of` is also available as part of the C++11 standard.
7878

7979
* `none_of` and `none_of_equal` both return true for empty ranges, no matter what is passed to test against.
8080

doc/partition_point.qbk

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Both of the variants of `partition_point` take their parameters by value or cons
5454

5555
[heading Notes]
5656

57-
* The iterator-based version of the routine `partition_point` is part of the C++11 standard. When compiled using a C++11 implementation, the implementation from the standard library will be used.
57+
* The iterator-based version of the routine `partition_point` is also available as part of the C++11 standard.
5858

5959
* For empty ranges, the partition point is the end of the range.
6060

include/boost/algorithm/cxx11/all_of.hpp

-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#ifndef BOOST_ALGORITHM_ALL_OF_HPP
1313
#define BOOST_ALGORITHM_ALL_OF_HPP
1414

15-
#include <algorithm> // for std::all_of, if available
1615
#include <boost/range/begin.hpp>
1716
#include <boost/range/end.hpp>
1817

@@ -27,8 +26,6 @@ namespace boost { namespace algorithm {
2726
/// \param p A predicate for testing the elements of the sequence
2827
///
2928
/// \note This function is part of the C++2011 standard library.
30-
/// We will use the standard one if it is available,
31-
/// otherwise we have our own implementation.
3229
template<typename InputIterator, typename Predicate>
3330
bool all_of ( InputIterator first, InputIterator last, Predicate p )
3431
{

include/boost/algorithm/cxx11/any_of.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#ifndef BOOST_ALGORITHM_ANY_OF_HPP
1515
#define BOOST_ALGORITHM_ANY_OF_HPP
1616

17-
#include <algorithm> // for std::any_of, if available
1817
#include <boost/range/begin.hpp>
1918
#include <boost/range/end.hpp>
2019

include/boost/algorithm/cxx11/copy_if.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef BOOST_ALGORITHM_COPY_IF_HPP
1313
#define BOOST_ALGORITHM_COPY_IF_HPP
1414

15-
#include <algorithm> // for std::copy_if, if available
15+
#include <utility> // for std::pair, std::make_pair
1616
#include <boost/range/begin.hpp>
1717
#include <boost/range/end.hpp>
1818

@@ -28,8 +28,6 @@ namespace boost { namespace algorithm {
2828
/// \param result An output iterator to write the results into
2929
/// \param p A predicate for testing the elements of the range
3030
/// \note This function is part of the C++2011 standard library.
31-
/// We will use the standard one if it is available,
32-
/// otherwise we have our own implementation.
3331
template<typename InputIterator, typename OutputIterator, typename Predicate>
3432
OutputIterator copy_if ( InputIterator first, InputIterator last, OutputIterator result, Predicate p )
3533
{

include/boost/algorithm/cxx11/copy_n.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#ifndef BOOST_ALGORITHM_COPY_N_HPP
1313
#define BOOST_ALGORITHM_COPY_N_HPP
1414

15-
#include <algorithm> // for std::copy_n, if available
16-
1715
namespace boost { namespace algorithm {
1816

1917
/// \fn copy_n ( InputIterator first, Size n, OutputIterator result )
@@ -25,8 +23,6 @@ namespace boost { namespace algorithm {
2523
/// \param n The number of elements to copy
2624
/// \param result An output iterator to write the results into
2725
/// \note This function is part of the C++2011 standard library.
28-
/// We will use the standard one if it is available,
29-
/// otherwise we have our own implementation.
3026
template <typename InputIterator, typename Size, typename OutputIterator>
3127
OutputIterator copy_n ( InputIterator first, Size n, OutputIterator result )
3228
{

include/boost/algorithm/cxx11/find_if_not.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#ifndef BOOST_ALGORITHM_FIND_IF_NOT_HPP
1313
#define BOOST_ALGORITHM_FIND_IF_NOT_HPP
1414

15-
#include <algorithm> // for std::find_if_not, if it exists
16-
1715
#include <boost/range/begin.hpp>
1816
#include <boost/range/end.hpp>
1917

@@ -27,8 +25,6 @@ namespace boost { namespace algorithm {
2725
/// \param last One past the end of the input sequence
2826
/// \param p A predicate for testing the elements of the range
2927
/// \note This function is part of the C++2011 standard library.
30-
/// We will use the standard one if it is available,
31-
/// otherwise we have our own implementation.
3228
template<typename InputIterator, typename Predicate>
3329
InputIterator find_if_not ( InputIterator first, InputIterator last, Predicate p )
3430
{

include/boost/algorithm/cxx11/iota.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#ifndef BOOST_ALGORITHM_IOTA_HPP
1313
#define BOOST_ALGORITHM_IOTA_HPP
1414

15-
#include <numeric>
16-
1715
#include <boost/range/begin.hpp>
1816
#include <boost/range/end.hpp>
1917

@@ -26,8 +24,6 @@ namespace boost { namespace algorithm {
2624
/// \param last One past the end of the input sequence
2725
/// \param value The initial value of the sequence to be generated
2826
/// \note This function is part of the C++2011 standard library.
29-
/// We will use the standard one if it is available,
30-
/// otherwise we have our own implementation.
3127
template <typename ForwardIterator, typename T>
3228
void iota ( ForwardIterator first, ForwardIterator last, T value )
3329
{

include/boost/algorithm/cxx11/is_partitioned.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#ifndef BOOST_ALGORITHM_IS_PARTITIONED_HPP
1313
#define BOOST_ALGORITHM_IS_PARTITIONED_HPP
1414

15-
#include <algorithm> // for std::is_partitioned, if available
16-
1715
#include <boost/range/begin.hpp>
1816
#include <boost/range/end.hpp>
1917

@@ -26,8 +24,6 @@ namespace boost { namespace algorithm {
2624
/// \param last One past the end of the input sequence
2725
/// \param p The predicate to test the values with
2826
/// \note This function is part of the C++2011 standard library.
29-
/// We will use the standard one if it is available,
30-
/// otherwise we have our own implementation.
3127
template <typename InputIterator, typename UnaryPredicate>
3228
bool is_partitioned ( InputIterator first, InputIterator last, UnaryPredicate p )
3329
{

include/boost/algorithm/cxx11/is_permutation.hpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#ifndef BOOST_ALGORITHM_IS_PERMUTATION11_HPP
1313
#define BOOST_ALGORITHM_IS_PERMUTATION11_HPP
1414

15-
#include <algorithm> // for std::less, tie, mismatch and is_permutation (if available)
16-
#include <utility> // for std::make_pair
15+
#include <algorithm> // for std::find_if, count_if, mismatch
16+
#include <utility> // for std::pair
1717
#include <functional> // for std::equal_to
1818
#include <iterator>
1919

@@ -108,8 +108,6 @@ namespace detail {
108108
/// \param p The predicate to compare elements with
109109
///
110110
/// \note This function is part of the C++2011 standard library.
111-
/// We will use the standard one if it is available,
112-
/// otherwise we have our own implementation.
113111
template< class ForwardIterator1, class ForwardIterator2, class BinaryPredicate >
114112
bool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1,
115113
ForwardIterator2 first2, BinaryPredicate p )
@@ -135,8 +133,6 @@ bool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1,
135133
/// \param last2 One past the end of the input sequence
136134
/// \param first2 The start of the second sequence
137135
/// \note This function is part of the C++2011 standard library.
138-
/// We will use the standard one if it is available,
139-
/// otherwise we have our own implementation.
140136
template< class ForwardIterator1, class ForwardIterator2 >
141137
bool is_permutation ( ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2 )
142138
{

include/boost/algorithm/cxx11/is_sorted.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#ifndef BOOST_ALGORITHM_ORDERED_HPP
1414
#define BOOST_ALGORITHM_ORDERED_HPP
1515

16-
#include <algorithm>
1716
#include <functional>
1817
#include <iterator>
1918

include/boost/algorithm/cxx11/none_of.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#ifndef BOOST_ALGORITHM_NONE_OF_HPP
1313
#define BOOST_ALGORITHM_NONE_OF_HPP
1414

15-
#include <algorithm> // for std::none_of, if available
1615
#include <boost/range/begin.hpp>
1716
#include <boost/range/end.hpp>
1817

include/boost/algorithm/cxx11/partition_copy.hpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
#ifndef BOOST_ALGORITHM_PARTITION_COPY_HPP
1313
#define BOOST_ALGORITHM_PARTITION_COPY_HPP
1414

15-
#include <algorithm> // for std::partition_copy, if available
16-
#include <utility> // for make_pair
15+
#include <utility> // for std::pair
1716

1817
#include <boost/range/begin.hpp>
1918
#include <boost/range/end.hpp>
@@ -34,8 +33,6 @@ namespace boost { namespace algorithm {
3433
/// \param p A predicate for dividing the elements of the input sequence.
3534
///
3635
/// \note This function is part of the C++2011 standard library.
37-
/// We will use the standard one if it is available,
38-
/// otherwise we have our own implementation.
3936
template <typename InputIterator,
4037
typename OutputIterator1, typename OutputIterator2, typename UnaryPredicate>
4138
std::pair<OutputIterator1, OutputIterator2>

include/boost/algorithm/cxx11/partition_point.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef BOOST_ALGORITHM_PARTITION_POINT_HPP
1313
#define BOOST_ALGORITHM_PARTITION_POINT_HPP
1414

15-
#include <algorithm> // for std::partition_point, if available
15+
#include <iterator> // for std::distance, advance
1616

1717
#include <boost/range/begin.hpp>
1818
#include <boost/range/end.hpp>
@@ -27,8 +27,6 @@ namespace boost { namespace algorithm {
2727
/// \param last One past the end of the input sequence
2828
/// \param p The predicate to test the values with
2929
/// \note This function is part of the C++2011 standard library.
30-
/// We will use the standard one if it is available,
31-
/// otherwise we have our own implementation.
3230
template <typename ForwardIterator, typename Predicate>
3331
ForwardIterator partition_point ( ForwardIterator first, ForwardIterator last, Predicate p )
3432
{

include/boost/algorithm/cxx14/equal.hpp

+2-1
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

+1-6
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

-1
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)