|
template<typename It , typename m > |
struct member_iterator_t< It, m > | tag::member_const_iterator (const It &it, m std::iterator_traits< It >::value_type::*d) |
|
template<typename It , typename m > |
struct member_iterator_t< It, m > | tag::member_iterator (It it, m std::iterator_traits< It >::value_type::*d) |
|
This group provides additional iterators to complement the <iterator> header of STL.
template<typename It , typename m >
struct member_iterator_t< It, m > tag::member_const_iterator |
( |
const It & |
it, |
|
|
m std::iterator_traits< It >::value_type::* |
d |
|
) |
| |
|
read |
helper function to simplify the use of member_iterator_t wrapper. This is useful for passing member iterators as arguments.
- it the const iterator to wrap, the new member_iterator_t returned will point to the same position
- d the member to wrap
struct simple { int a; float b; };
vector<simple> test;
template<typename It , typename m >
struct member_iterator_t< It, m > tag::member_iterator |
( |
It |
it, |
|
|
m std::iterator_traits< It >::value_type::* |
d |
|
) |
| |
|
read |