Boost logo

Boost :

From: Jason House (jhouse_at_[hidden])
Date: 2003-11-06 11:14:28

Joaquín Mª López Muñoz wrote:
> indexed_set is used through the interfaces of their indices. Each of these
> indices have their own iterators and set-like methods. An iterator
> obtained from say index #0 is a different type than one coming from
> index #1. For instance:
> typedef indexed_set<..> my_indexed_set;
> my_indexed_set s;
> my_indexed_set::iterator_type<0>::type it =s.get<0>().begin(); // returns iterator
> to the index #0
> my_indexed_set::iterator_type<1>::type it =s.get<1>().end(); // returns iterator
> to the index #1
> Also, my_indexed_set::iterator_type<N>::type is the same as
> my_indexed_set::index_type<N>::type::iterator.
> I don't know if this answers your question. May I suggest you take a look
> at the examples section, where practical cases can be found on how to access and
> use the diferent indices and iterators of an indexed_set.

It does answer my question

Boost list run by bdawes at, gregod at, cpdaniel at, john at