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_reference add_reference]
10 [note This trait has been made obsolete by __add_lvalue_reference and __add_rvalue_reference,
11 and new code should use these new traits rather than __is_reference which is retained
12 for backwards compatibility only.
22 __type If `T` is not a reference type then `T&`, otherwise `T`.
26 __header ` #include <boost/type_traits/add_reference.hpp>` or ` #include <boost/type_traits.hpp>`
30 [ [Expression] [Result Type]]
32 [[`add_reference<int>::type`][`int&`]]
34 [[`add_reference<int const&>::type`] [`int const&`]]
36 [[`add_reference<int*>::type`] [`int*&`]]
38 [[`add_reference<int*&>::type`] [`int*&`]]