I would like to be able to write something like
char f(char);
vector<char> bar;
vector<char> foo = map(f, bar); //Strikingly functional.
in the STL.
But, as we all know, the STL has the map class as a collection.
Rummaging around, the transform function appears to be similar, but it will not cleverly autogenerate the size of the resultant collection.