|
Boost : |
Subject: [boost] [type_traits] templated type traits?
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2012-11-09 18:45:02
Hi,
Is there a way to inspect if a type is a template instantiaton
(is_templated) and the type of the instantiated template parameters
(arg1_type)?
is_templated< std::vector<int> >::value // true
is_templated< int >::value // false
template_traits< std::vector<int> >::arg1_type // int
Thanks,
--Lorenzo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk