1
2// (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes,
3// Howard Hinnant and John Maddock 2000, 2010.
4// (C) Copyright Mat Marcus, Jesse Jones and Adobe Systems Inc 2001
5
6// Use, modification and distribution are subject to the Boost Software License,
7// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8// http://www.boost.org/LICENSE_1_0.txt).
9//
10// See http://www.boost.org/libs/type_traits for most recent version including documentation.
11
12#ifndef BOOST_TT_IS_REFERENCE_HPP_INCLUDED
13#define BOOST_TT_IS_REFERENCE_HPP_INCLUDED
14
15#include <boost/type_traits/is_lvalue_reference.hpp>
16#include <boost/type_traits/is_rvalue_reference.hpp>
17
18namespace boost {
19
20template <class T> struct is_reference
21 : public
22 integral_constant<
23 bool,
24 ::boost::is_lvalue_reference<T>::value || ::boost::is_rvalue_reference<T>::value>
25{};
26
27} // namespace boost
28
29#endif // BOOST_TT_IS_REFERENCE_HPP_INCLUDED
30
31

source code of boost/boost/type_traits/is_reference.hpp