Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 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 | |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 15 | #include <ndnboost/type_traits/config.hpp> |
| 16 | #include <ndnboost/type_traits/is_lvalue_reference.hpp> |
| 17 | #include <ndnboost/type_traits/is_rvalue_reference.hpp> |
| 18 | #include <ndnboost/type_traits/ice.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 19 | |
| 20 | // should be the last #include |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 21 | #include <ndnboost/type_traits/detail/bool_trait_def.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 22 | |
| 23 | namespace ndnboost { |
| 24 | |
| 25 | namespace detail { |
| 26 | |
| 27 | template <typename T> |
| 28 | struct is_reference_impl |
| 29 | { |
| 30 | BOOST_STATIC_CONSTANT(bool, value = |
| 31 | (::ndnboost::type_traits::ice_or< |
| 32 | ::ndnboost::is_lvalue_reference<T>::value, ::ndnboost::is_rvalue_reference<T>::value |
| 33 | >::value)); |
| 34 | }; |
| 35 | |
| 36 | } // namespace detail |
| 37 | |
| 38 | BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_reference,T,::ndnboost::detail::is_reference_impl<T>::value) |
| 39 | |
| 40 | } // namespace ndnboost |
| 41 | |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 42 | #include <ndnboost/type_traits/detail/bool_trait_undef.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 43 | |
| 44 | #endif // BOOST_TT_IS_REFERENCE_HPP_INCLUDED |
| 45 | |