$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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