
10 Jun
2010
10 Jun
'10
5 p.m.
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