diff --git a/include/boost/pending/iterator_tests.hpp b/include/boost/pending/iterator_tests.hpp index fcdbb76..13b83de 100644 --- a/include/boost/pending/iterator_tests.hpp +++ b/include/boost/pending/iterator_tests.hpp @@ -5,7 +5,9 @@ // test suite for STL concepts such as iterators and containers. // // Revision History: -// 04 Feb 2001 Added lvalue test (David Abrahams) +// 04 Feb 2001 Added lvalue test, corrected preconditions +// (David Abrahams) + #include #include @@ -95,7 +97,7 @@ void forward_iterator_test(Iterator i, T v1, T v2) (void)p; } -// Preconditions: *i == v1, *++i == v2 +// Preconditions: *i == v1, *++i == v2, --i template void bidirectional_iterator_test(Iterator i, T v1, T v2) { @@ -122,7 +124,7 @@ void bidirectional_iterator_test(Iterator i, T v1, T v2) // mutable_bidirectional_iterator_test -// Preconditions: [i,i+N) is a valid range +// Preconditions: [i-1,i+N) is a valid range template void random_access_iterator_test(Iterator i, int N, TrueVals vals) {