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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 1 addition & 3 deletions
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

Lines changed: 0 additions & 4 deletions
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
{

0 commit comments

Comments
 (0)