19 Mar
2013
19 Mar
'13
1:07 p.m.
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/alg...
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