From 0ac413ecb80ede820fef13563f97f55bc6126e85 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Sun, 17 Nov 2013 20:47:14 +0000 Subject: [PATCH] Updated docs for is_sorted, etc. Refs #9367 [SVN r86741] --- doc/ordered-hpp.qbk | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/ordered-hpp.qbk b/doc/ordered-hpp.qbk index 718f1f9..9e860d4 100644 --- a/doc/ordered-hpp.qbk +++ b/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 - bool is_sorted ( Iterator first, Iterator last, Pred p ); + template + bool is_sorted ( ForwardIterator first, ForwardIterator last, Pred p ); - template - bool is_sorted ( Iterator first, Iterator last ); + template + bool is_sorted ( ForwardIterator first, ForwardIterator last ); template @@ -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 - bool is_decreasing ( Iterator first, Iterator last ); + template + bool is_decreasing ( ForwardIterator first, ForwardIterator last ); template 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 - bool is_strictly_increasing ( Iterator first, Iterator last ); + template + bool is_strictly_increasing ( ForwardIterator first, ForwardIterator last ); template 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 - bool is_strictly_decreasing ( Iterator first, Iterator last ); + template + bool is_strictly_decreasing ( ForwardIterator first, ForwardIterator last ); template bool is_strictly_decreasing ( const R &range );