Retrieving the traversed range

Peter Alexander peter.alexander.au at gmail.com
Wed Aug 25 01:49:17 PDT 2010


Sorry, I should have mentioned this, but creating a copy of the
range into a newly allocated array is absolutely not acceptable
(this operation should require zero memory overhead).

For reference, this is trivially achievable in C++:

std::reverse(R.begin(), std::find_if(R.begin(), R.end(), pred));


More information about the Digitalmars-d mailing list