Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-10-08 06:42:24


Thorsten Ottosen wrote:
>
> I 'm considering to change the naming of the traits and need some
> advise. Currently they are called:
>
> container_iterator<C>::type
> container_const_iterator<C>::type
>
> I leaning towards this instead
>
> iterator<C>::type
> const_iterator<C>::type
>
> which seems much more elegant. My fear was clashing with names like
> std::iterator, but shouldn't this be solved by full
> qualification boost::iterator. Any thoughts?

I prefer the

    iterator_of<C>::type
    const_iterator_of<C>::type
    value_type_of<C>::type
    reference_of<C>::type

convention for "accessor metafunctions".


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