Boost logo

Boost :

From: Christian Holmquist (c.holmquist_at_[hidden])
Date: 2007-05-24 11:52:03


> There is no is_range<T>::value trait. So no.
> Is that needed for output?

Well, if I have a boost::tuple<std::vector<int> >, how would I output that
using the stream operators of boost::tuple? or boost::variant, or fusion
sequences, etc..

With container traits I get both input and output for free here.

On 24/05/07, Thorsten Ottosen <thorsten.ottosen_at_[hidden]> wrote:
>
> Christian Holmquist skrev:
> >> Yes and no. Container traits could be useful with container operations
> >> like insert, not for outputting a range of values (Boost.Range is more
> >> generic here).
> >
> > Can I determine from a type T if it is a range, or if I can construct a
> > range from it?
> > I remember looking for something like this but couldn't find it.
>
> There is no is_range<T>::value trait. So no.
>
> Is that needed for output?
>
> -Thorsten
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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