blob: 675aaafc1108dc3ac3ce9255304957d080324afb [file] [log] [blame]
Jeff Thompsona28eed82013-08-22 16:21:10 -07001
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
Jeff Thompson3d613fd2013-10-15 15:39:04 -07009#ifndef NDNBOOST_TT_REMOVE_ALL_EXTENTS_HPP_INCLUDED
10#define NDNBOOST_TT_REMOVE_ALL_EXTENTS_HPP_INCLUDED
Jeff Thompsona28eed82013-08-22 16:21:10 -070011
12#include <ndnboost/config.hpp>
13#include <cstddef>
14#include <ndnboost/detail/workaround.hpp>
15
Jeff Thompson3d613fd2013-10-15 15:39:04 -070016#if NDNBOOST_WORKAROUND(NDNBOOST_MSVC,<=1300)
Jeff Thompsona28eed82013-08-22 16:21:10 -070017#include <ndnboost/type_traits/msvc/remove_all_extents.hpp>
18#endif
19
20// should be the last #include
21#include <ndnboost/type_traits/detail/type_trait_def.hpp>
22
Jeff Thompson3d613fd2013-10-15 15:39:04 -070023#if !NDNBOOST_WORKAROUND(NDNBOOST_MSVC,<=1300)
Jeff Thompsona28eed82013-08-22 16:21:10 -070024
25namespace ndnboost {
26
Jeff Thompson3d613fd2013-10-15 15:39:04 -070027NDNBOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_all_extents,T,T)
Jeff Thompsona28eed82013-08-22 16:21:10 -070028
Jeff Thompson3d613fd2013-10-15 15:39:04 -070029#if !defined(NDNBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(NDNBOOST_NO_ARRAY_TYPE_SPECIALIZATIONS)
30NDNBOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_all_extents,T[N],typename ndnboost::remove_all_extents<T>::type type)
31NDNBOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_all_extents,T const[N],typename ndnboost::remove_all_extents<T const>::type type)
32NDNBOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_all_extents,T volatile[N],typename ndnboost::remove_all_extents<T volatile>::type type)
33NDNBOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_all_extents,T const volatile[N],typename ndnboost::remove_all_extents<T const volatile>::type type)
34#if !NDNBOOST_WORKAROUND(__BORLANDC__, NDNBOOST_TESTED_AT(0x610)) && !defined(__IBMCPP__) && !NDNBOOST_WORKAROUND(__DMC__, NDNBOOST_TESTED_AT(0x840))
35NDNBOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_all_extents,T[],typename ndnboost::remove_all_extents<T>::type)
36NDNBOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_all_extents,T const[],typename ndnboost::remove_all_extents<T const>::type)
37NDNBOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_all_extents,T volatile[],typename ndnboost::remove_all_extents<T volatile>::type)
38NDNBOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_all_extents,T const volatile[],typename ndnboost::remove_all_extents<T const volatile>::type)
Jeff Thompsona28eed82013-08-22 16:21:10 -070039#endif
40#endif
41
42} // namespace ndnboost
43
44#endif
45
46#include <ndnboost/type_traits/detail/type_trait_undef.hpp>
47
Jeff Thompson3d613fd2013-10-15 15:39:04 -070048#endif // NDNBOOST_TT_REMOVE_BOUNDS_HPP_INCLUDED