News for hackers. Stuff that matters.

akaus

Re:Manipulating C++ Containers Functionally 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

Re:Yet another AWK competitor - C++ on Sunday May 01, 2011 @12:08PM (#2503232)
Interactive performance? SCC compilation is about 1 sec on my old laptop with warm cache. Good enough for command line tool. Or do you mean run time performance? Run time probably faster than anything else.