Added crbegin and crend to Boost.Array; refs #4761. Will close ticket when merged to release branch

[SVN r67481]
This commit is contained in:
Marshall Clow
2010-12-28 19:14:23 +00:00
parent 05aa660128
commit 97e912e82e
2 changed files with 22 additions and 1 deletions

View File

@ -39,6 +39,13 @@ int main()
=seasons.rbegin(); pos<seasons.rend(); ++pos) {
std::cout << " " << *pos;
}
// try constant reverse iterators
std::cout << "reverse: ";
for (boost::array<std::string,4>::const_reverse_iterator pos
=seasons.crbegin(); pos<seasons.crend(); ++pos) {
std::cout << " " << *pos;
}
std::cout << std::endl;
return 0; // makes Visual-C++ compiler happy