Imported Upstream version 1.57.0
[platform/upstream/boost.git] / boost / type_traits / remove_all_extents.hpp
1
2 //  (C) Copyright John Maddock 2005.
3 //  Use, modification and distribution are subject to the Boost Software License,
4 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 //  http://www.boost.org/LICENSE_1_0.txt).
6 //
7 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
8
9 #ifndef BOOST_TT_REMOVE_ALL_EXTENTS_HPP_INCLUDED
10 #define BOOST_TT_REMOVE_ALL_EXTENTS_HPP_INCLUDED
11
12 #include <boost/config.hpp>
13 #include <cstddef>
14 #include <boost/detail/workaround.hpp>
15
16 // should be the last #include
17 #include <boost/type_traits/detail/type_trait_def.hpp>
18
19 namespace boost {
20
21 BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_all_extents,T,T)
22
23 #if !defined(BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS)
24 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_all_extents,T[N],typename boost::remove_all_extents<T>::type type)
25 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_all_extents,T const[N],typename boost::remove_all_extents<T const>::type type)
26 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_all_extents,T volatile[N],typename boost::remove_all_extents<T volatile>::type type)
27 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_all_extents,T const volatile[N],typename boost::remove_all_extents<T const volatile>::type type)
28 #if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) && !defined(__IBMCPP__) &&  !BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840))
29 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_all_extents,T[],typename boost::remove_all_extents<T>::type)
30 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_all_extents,T const[],typename boost::remove_all_extents<T const>::type)
31 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_all_extents,T volatile[],typename boost::remove_all_extents<T volatile>::type)
32 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_all_extents,T const volatile[],typename boost::remove_all_extents<T const volatile>::type)
33 #endif
34 #endif
35
36 } // namespace boost
37
38 #include <boost/type_traits/detail/type_trait_undef.hpp>
39
40 #endif // BOOST_TT_REMOVE_BOUNDS_HPP_INCLUDED