mirror of
https://github.com/boostorg/iterator.git
synced 2025-10-04 21:20:56 +02:00
updated tag mechanism for iterators using Dave's idea
[SVN r612]
This commit is contained in:
@@ -7,8 +7,9 @@
|
||||
int main()
|
||||
{
|
||||
int x[] = { 1, 2, 3, 4 };
|
||||
boost::reverse_iterator<int*, int, int&, int*, std::random_access_iterator_tag, std::ptrdiff_t>
|
||||
first(x + 4), last(x);
|
||||
boost::reverse_iterator<int*, int, int&, int*,
|
||||
boost::iterator_tag<boost::mutable_lvalue_iterator_tag, boost::random_access_traversal_tag>
|
||||
, std::ptrdiff_t> first(x + 4), last(x);
|
||||
std::copy(first, last, std::ostream_iterator<int>(std::cout, " "));
|
||||
std::cout << std::endl;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user