News for hackers. Stuff that matters.
Re:Manipulating C++ Containers Functionally by akaus on Monday December 17, 2012 @01:38AM (#4931096)
There is STO library: http://github.com/lvv/sto

> E.g.: erase remove idiom

remove sub-string: string("abcd") - "cd"

> specifying begin() and end()

unary '+', '-' overloaded to return to begin()/end()

> when you mean the whole container, ...

Euler example in just one expression (with boost lambda): range(1000) | (!(_1%3) || !(_1%3)) | add

There are no comments on this comment yet.