Created
August 17, 2010 03:58
-
-
Save jb55/528381 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <class TFunc> | |
auto map(const TFunc &f) -> FList<decltype(f(_Ty()))>* | |
{ | |
auto temp = new FList<decltype(f(_Ty()))>(); | |
for (auto i = begin(); i != end(); i++) | |
temp->push_back(f(*i)); | |
return temp; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment