summaryrefslogtreecommitdiff
path: root/libs/algorithm/doc/ordered-hpp.qbk
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-08-05 19:32:57 +0000
committer <>2014-10-07 10:01:33 +0000
commit1c3648bf5b7d17fcd4fe9bc95802b16fd9eee304 (patch)
tree03de66686a262696ec2ac408e62250dc1f0c01aa /libs/algorithm/doc/ordered-hpp.qbk
parent8c4528713d907ee2cfd3bfcbbad272c749867f84 (diff)
downloadboost-tarball-1c3648bf5b7d17fcd4fe9bc95802b16fd9eee304.tar.gz
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_56_0.tar.bz2.boost_1_56_0
Diffstat (limited to 'libs/algorithm/doc/ordered-hpp.qbk')
-rw-r--r--libs/algorithm/doc/ordered-hpp.qbk22
1 files changed, 11 insertions, 11 deletions
diff --git a/libs/algorithm/doc/ordered-hpp.qbk b/libs/algorithm/doc/ordered-hpp.qbk
index 718f1f9d5..9e860d423 100644
--- a/libs/algorithm/doc/ordered-hpp.qbk
+++ b/libs/algorithm/doc/ordered-hpp.qbk
@@ -19,11 +19,11 @@ The function `is_sorted(sequence)` determines whether or not a sequence is compl
``
namespace boost { namespace algorithm {
- template <typename Iterator, typename Pred>
- bool is_sorted ( Iterator first, Iterator last, Pred p );
+ template <typename ForwardIterator, typename Pred>
+ bool is_sorted ( ForwardIterator first, ForwardIterator last, Pred p );
- template <typename Iterator>
- bool is_sorted ( Iterator first, Iterator last );
+ template <typename ForwardIterator>
+ bool is_sorted ( ForwardIterator first, ForwardIterator last );
template <typename Range, typename Pred>
@@ -34,7 +34,7 @@ namespace boost { namespace algorithm {
}}
``
-Iterator requirements: The `is_sorted` functions will work on all kinds of iterators (except output iterators).
+Iterator requirements: The `is_sorted` functions will work forward iterators or better.
[heading is_sorted_until]
@@ -88,8 +88,8 @@ To test if a sequence is decreasing (each element no larger than the preceding o
``
namespace boost { namespace algorithm {
- template <typename Iterator>
- bool is_decreasing ( Iterator first, Iterator last );
+ template <typename ForwardIterator>
+ bool is_decreasing ( ForwardIterator first, ForwardIterator last );
template <typename R>
bool is_decreasing ( const R &range );
@@ -99,8 +99,8 @@ namespace boost { namespace algorithm {
To test if a sequence is strictly increasing (each element larger than the preceding one):
``
namespace boost { namespace algorithm {
- template <typename Iterator>
- bool is_strictly_increasing ( Iterator first, Iterator last );
+ template <typename ForwardIterator>
+ bool is_strictly_increasing ( ForwardIterator first, ForwardIterator last );
template <typename R>
bool is_strictly_increasing ( const R &range );
@@ -110,8 +110,8 @@ namespace boost { namespace algorithm {
To test if a sequence is strictly decreasing (each element smaller than the preceding one):
``
namespace boost { namespace algorithm {
- template <typename Iterator>
- bool is_strictly_decreasing ( Iterator first, Iterator last );
+ template <typename ForwardIterator>
+ bool is_strictly_decreasing ( ForwardIterator first, ForwardIterator last );
template <typename R>
bool is_strictly_decreasing ( const R &range );