Exceptional coding style

FG home at fgda.pl
Tue Jan 15 02:20:15 PST 2013


On 2013-01-15 08:24, Tavi Cacina wrote:
> Am 15.01.2013 01:55, schrieb Stewart Gordon:
>> vec.erase(std::remove(vec.begin(), vec.end(), val), vec.end());
>
> That piece of code is correct.
> http://en.wikipedia.org/wiki/Erase-remove_idiom

All thanks to a terrible naming decision...
It's not remove but move_to_end. Why call it remove?


More information about the Digitalmars-d mailing list