]> git.lyx.org Git - lyx.git/blob - boost/boost/type_traits/add_pointer.hpp
update boost to version 1.29.0
[lyx.git] / boost / boost / type_traits / add_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_ADD_POINTER_HPP_INCLUDED
11 #define BOOST_TT_ADD_POINTER_HPP_INCLUDED
12
13 #include "boost/type_traits/remove_reference.hpp"
14
15 // should be the last #include
16 #include "boost/type_traits/detail/type_trait_def.hpp"
17
18 namespace boost {
19
20 namespace detail {
21
22 template <typename T>
23 struct add_pointer_impl
24 {
25     typedef typename remove_reference<T>::type no_ref_type;
26     typedef no_ref_type* type;
27 };
28
29 } // namespace detail
30
31 BOOST_TT_AUX_TYPE_TRAIT_DEF1(add_pointer,T,typename detail::add_pointer_impl<T>::type)
32
33 } // namespace boost
34
35 #include "boost/type_traits/detail/type_trait_undef.hpp"
36
37 #endif // BOOST_TT_ADD_POINTER_HPP_INCLUDED