]> git.lyx.org Git - lyx.git/blob - boost/boost/type_traits/remove_pointer.hpp
Bug: 935
[lyx.git] / boost / boost / type_traits / remove_pointer.hpp
1
2 // (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
3 // Permission to copy, use, modify, sell and distribute this software is 
4 // granted provided this copyright notice appears in all copies. This software 
5 // is provided "as is" without express or implied warranty, and with no claim 
6 // as to its suitability for any purpose.
7 //
8 // See http://www.boost.org for most recent version including documentation.
9
10 #ifndef BOOST_TT_REMOVE_POINTER_HPP_INCLUDED
11 #define BOOST_TT_REMOVE_POINTER_HPP_INCLUDED
12
13 #include "boost/type_traits/broken_compiler_spec.hpp"
14 #include "boost/config.hpp"
15
16 // should be the last #include
17 #include "boost/type_traits/detail/type_trait_def.hpp"
18
19 namespace boost {
20
21 #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
22
23 BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_pointer,T,T)
24 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_pointer,T*,T)
25 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_pointer,T* const,T)
26 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_pointer,T* volatile,T)
27 BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_pointer,T* const volatile,T)
28
29 #else
30
31 BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_pointer,T,typename detail::remove_pointer_impl<T>::type)
32
33 #endif
34
35 } // namespace boost
36
37 #include "boost/type_traits/detail/type_trait_undef.hpp"
38
39 #endif // BOOST_TT_REMOVE_POINTER_HPP_INCLUDED