Boost logo

Boost :

Subject: Re: [boost] [range][iterator] contiguous iterators
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2013-03-19 09:07:18


On 19-03-2013 12:01, Stefan Strasser wrote:

>
>> Have you considered
>> http://www.boost.org/doc/libs/1_53_0/libs/range/doc/html/range/reference/algorithms/new.html
>>
>>
>> boost::push_back( my_container, my_range )
>>
>> should be optimally efficient and more direct than using an output range.
>
> No, and thanks, but "more direct" is "too direct" in this case. The
> algorithm should remain generic and not only be able to output into
> containers.
>
> going back to my example of database.get, you might wanna use it to load
> image data into a large container,

No problem here.

> or use it to load 4 byte into an
> integer.

Hm. How would that work? What concepts do you have in mind? Do yo want
to interpret an int as a container of 4 bytes?

-Thorsten


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