Boost logo

Boost :

From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2001-02-28 07:35:41

Jeremy Siek wrote:
> Another variation:
> boost::iterator_adaptor<int*, reverse_iterator_policies,
> iterator_traits_builder
> ::Reference<int>::Pointer<int*>::Distance<std::ptrdiff_t>
> ::Value<int>::Category<std::input_iterator_tag>
> >
> The above is closer to Aleksey's initial suggestion, except
> that the Base
> type does not go into the iterator_traits_builder. Instead types not
> specified in the iterator_traits_builder are assigned a
> default_argument
> type, which the iterator_adaptor notices and swaps for the
> real default
> type.

I like this version! (well, would like to get rid of mixed case, though, but
don't see any better way to spell 'reference' without hiding the nested
typedef too...)


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