|
Boost : |
Subject: Re: [boost] [xint] Fourth release, requesting preliminary review again
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-06-10 13:00:50
AMDG
Chad Nelson wrote:
>> as an example, std::copy does not need to know the size of the output
>> sequence nor need to know how to grow it (one can for example use
>> back_inserter for automatic growth). Couldn't xint use a similar
>> strategy?
>>
>
> std::copy doesn't need to know how to grow the output sequence, but it
> *does* need to be passed the back_inserter, which needs to know how to
> grow it.
>
You don't have to use back_inserter with std::copy.
Copying into a pre-existing buffer also works.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk