Created
June 17, 2011 08:02
-
-
Save ydnax/1031049 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 from, class to> | |
to* convertContainer(const from *in){ | |
to* ret=new to(); | |
ret->reserve(in->size()); | |
ret->insert(ret->end(),in->begin(),in->end()); | |
return ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment