![]() |
![]() ![]() ![]() ![]() |
![]() |
iterator_rangeBoost , Chapter 1. Fusion 2.2 , View
|
||||||||||||||
|
выражение |
Семантика |
|---|---|
|
Creates an |
|
|
Copy constructs an |
|
Assigns to a |
char const* s = "Ruby"; typedefvector<int, char, double, char const*> vector_type; vector_type vec(1, 'x', 3.3, s); typedefresult_of::begin<vector_type>::type A; typedefresult_of::end<vector_type>::type B; typedefresult_of::next<A>::type C; typedefresult_of::prior<B>::type D; C c(vec); D d(vec); iterator_range<C, D> range(c, d); std::cout << range << std::endl;
Статья iterator_range раздела Chapter 1. Fusion 2.2 View может быть полезна для разработчиков на c++ и boost.
реклама |