Support for cbegin(n), cend(n).

[SVN r42103]
This commit is contained in:
Daniel James
2007-12-16 13:32:04 +00:00
parent 0ce212b5aa
commit 1bb2dc4883
6 changed files with 109 additions and 8 deletions
+2
View File
@@ -41,8 +41,10 @@ void bucket_tests(X* = 0)
for(size_type i = 0; i < x.bucket_count(); ++i) {
BOOST_TEST(x.bucket_size(i) == (size_type) std::distance(x.begin(i), x.end(i)));
BOOST_TEST(x.bucket_size(i) == (size_type) std::distance(x.cbegin(i), x.cend(i)));
X const& x_ref = x;
BOOST_TEST(x.bucket_size(i) == (size_type) std::distance(x_ref.begin(i), x_ref.end(i)));
BOOST_TEST(x.bucket_size(i) == (size_type) std::distance(x_ref.cbegin(i), x_ref.cend(i)));
}
}