Last active
October 6, 2017 11:33
-
-
Save deque-blog/708bb324981e37032248984353cb41db 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 T> | |
using container_t = | |
typename std::conditional< | |
std::is_copy_constructible<T>{}(), | |
std::vector<T>, | |
std::list<T>>::type; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment