Is it possible to write a type trait whose value is true for all common STL structures (e.g., vector, set, map, ...)?
vector
set
map
To get s
Actually, after some trial and error I found it's quite simple:
template struct is_vector > { static bool const value = true; };
I'd still like to know how to write a more general is_container. Do I have to list all types by hand?
is_container