1 | #include <boost/iterator/counting_iterator.hpp>
|
---|
2 | #include <boost/iterator/transform_iterator.hpp>
|
---|
3 |
|
---|
4 | double f(int i) { return i; }
|
---|
5 |
|
---|
6 | int main() {
|
---|
7 | auto i = boost::make_transform_iterator(boost::make_counting_iterator(3), f);
|
---|
8 | std::next(i);
|
---|
9 | return 0;
|
---|
10 | }
|
---|