mirror of
https://github.com/boostorg/iterator.git
synced 2025-10-04 21:20:56 +02:00
iterator_adaptor portability and fleshing-out
[SVN r600]
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include <boost/iterator/iterator_adaptors.hpp>
|
||||
#include <boost/cstdlib.hpp>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include "boost/iterator/iterator_adaptors.hpp"
|
||||
#include "boost/cstdlib.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
int main()
|
||||
{
|
||||
@@ -10,5 +10,6 @@ int main()
|
||||
boost::reverse_iterator<int*, int, int&, int*, std::random_access_iterator_tag, std::ptrdiff_t>
|
||||
first(x + 4), last(x);
|
||||
std::copy(first, last, std::ostream_iterator<int>(std::cout, " "));
|
||||
std::cout << std::endl;
|
||||
std::cout << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user