Is it possible to write a type trait whose value is true for all common STL structures (e.g., vector, set, map, ...)?
To get s
In our project we still didn't manage to migrate to compiler supporting C++11, so for type_traits of container objects I had to wrote a simple boost style helper:
template struct is_std_container: boost::false_type {};
template
struct is_std_container >: boost::true_type {};
template
struct is_std_container >: boost::true_type {};
template
struct is_std_container >: boost::true_type {};
template
struct is_std_container >: boost::true_type {};
template
struct is_std_container >: boost::true_type {};
template struct is_std_sequence: boost::false_type {};
template
struct is_std_sequence >: boost::true_type {};
template
struct is_std_sequence >: boost::true_type {};
template
struct is_std_sequence >: boost::true_type {};