Boost logo

Boost :

Subject: Re: [boost] Assign V2 - first impression
From: er (er.ci.2020_at_[hidden])
Date: 2011-06-23 07:44:19


>> This section deals with conversion from a Range to collections of
>> elements that need not (but may) support iterators.
>
> As I see it, the primary advantage of this conversion feature is that
> you can use it when th range only exists as a temporary. e.g. if a
> function returns a range, you can use it without first assigning that
> range to a variable. Perhaps this aspect could be made more clear?
>

I thought it was made clear in the tutorial, but I am proven wrong. In
this example, a container of type C, in the left hand side of <, is
constructed in place and filled with values 1, 1, 3 in it.

( csv_deque( 1, 1, 3 ) | convert<C>() ) < fifo;

> John Bytheway
>
> _______________________________________________
> 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