Are there any standard/de facto standard (boost) wrappers around standard algorithms which work with containers defining begin and end. Let me show you what I mean with the code:
// instead of specifying begin and end
std::copy(vector.begin(), vector.end(), output);
// write as
xxx::copy(vector, output);
I know it can be written easily, but I am looking specifically for something ubiquitous. Thanks.
std::copy(input.begin(), input.end(), std::back_inserter(output));
that really hurts my eyes... Unfortunately, whenever it comes down to actually modifying the structure of the underlying container (adding / removing) elements, thenBoost.Range
does not work :/ – Linsang