Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2004-05-07 09:10:11


From: Pavol Droba <droba_at_[hidden]>
> On Fri, May 07, 2004 at 09:59:44AM +0200, John Torjo wrote:
> >
> > How about a range_traits class:
> >
> > template<class C> struct range_traits {
> > typedef typename iterator_of<C>::type iterator;
> > typedef typename const_iterator_of<C>::type iterator;
> > ...etc
> > };
> >
> > It seems to me it provides a more unified of finding metadata about a
> > range (and it's a traits class ;))
> > Has this been suggested already?
>
> There was a long discussion about this issue some time ago. Monolitic
> class is not an acceptable solution, due to several reasons.

Why not have both? All it takes is a new header that defines this new traits
class.

-- 
Rob Stewart                           stewart_at_[hidden]
Software Engineer                     http://www.sig.com
Susquehanna International Group, LLP  using std::disclaimer;

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