Boost logo

Boost :

Subject: [boost] [type_traits] templated type traits?
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2012-11-09 18:45:02


Is there a way to inspect if a type is a template instantiaton
(is_templated) and the type of the instantiated template parameters

is_templated< std::vector<int> >::value // true
is_templated< int >::value // false

template_traits< std::vector<int> >::arg1_type // int


Boost list run by bdawes at, gregod at, cpdaniel at, john at