Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2005-05-19 23:57:35


Currently 'iterator_adaptor' exposes its underlying iterator _object_
(through 'base()'), but not its type, which stands in the way of a
generic code manipilating adapted iterators/sequences, e.g.:

    template<
          typename Sequence
>
    mtn::iterator_range< typename Sequence::iterator::base_type >
                                                // ^^^^^^^^^^^
                                                // currently unavailable
    base_view( Sequence& seq )
        {
        return mtn::make_iterator_range(
              seq.begin().base()
            , seq.end().base()
            );
        }

Any objections if I add the typedef (and update the docs
correspondingly)?

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk