2 // (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes, Howard
3 // Hinnant & John Maddock 2000.
4 // Use, modification and distribution are subject to the Boost Software License,
5 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt).
8 // See http://www.boost.org/libs/type_traits for most recent version including documentation.
11 #ifndef BOOST_TT_REMOVE_CV_HPP_INCLUDED
12 #define BOOST_TT_REMOVE_CV_HPP_INCLUDED
14 #include <boost/type_traits/broken_compiler_spec.hpp>
15 #include <boost/type_traits/detail/cv_traits_impl.hpp>
16 #include <boost/config.hpp>
17 #include <boost/detail/workaround.hpp>
21 #if BOOST_WORKAROUND(BOOST_MSVC,<=1300)
22 #include <boost/type_traits/msvc/remove_cv.hpp>
25 // should be the last #include
26 #include <boost/type_traits/detail/type_trait_def.hpp>
30 #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
32 // convert a type T to a non-cv-qualified type - remove_cv<T>
33 BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_cv
,T
,typename
boost::detail::cv_traits_imp
<T
*>::unqualified_type
)
34 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T
,remove_cv
,T
&,T
&)
35 #if !defined(BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS)
36 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T
,std::size_t N
,remove_cv
,T
const[N
],T type
[N
])
37 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T
,std::size_t N
,remove_cv
,T
volatile[N
],T type
[N
])
38 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T
,std::size_t N
,remove_cv
,T
const volatile[N
],T type
[N
])
41 #elif !BOOST_WORKAROUND(BOOST_MSVC,<=1300)
47 typedef typename remove_volatile_impl
<
48 typename remove_const_impl
<T
>::type
53 BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_cv
,T
,typename
boost::detail::remove_cv_impl
<T
>::type
)
55 #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
59 #include <boost/type_traits/detail/type_trait_undef.hpp>
61 #endif // BOOST_TT_REMOVE_CV_HPP_INCLUDED