2 Copyright 2007 John Maddock.
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt).
8 [section:add_pointer add_pointer]
16 __type The same type as `remove_reference<T>::type*`.
18 The rationale for this template
19 is that it produces the same type as `decltype(&t)`,
20 where `t` is an object of type `T`.
24 __header ` #include <boost/type_traits/add_pointer.hpp>` or ` #include <boost/type_traits.hpp>`
28 [ [Expression] [Result Type]]
30 [[`add_pointer<int>::type`][`int*`]]
32 [[`add_pointer<int const&>::type`] [`int const*`]]
34 [[`add_pointer<int*>::type`] [`int**`]]
36 [[`add_pointer<int*&>::type`] [`int**`]]