Sha256: 094086263abdea6e7e5c773f8ed09217ad546b71bb2b1253f6f28b806fb94206

Contents?: true

Size: 1.51 KB

Versions: 12

Compression:

Stored size: 1.51 KB

Contents

//  (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
//  Use, modification and distribution are subject to the Boost Software License,
//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt).
//
//  See http://www.boost.org/libs/type_traits for most recent version including documentation.

#ifndef BOOST_TT_ADD_REFERENCE_HPP_INCLUDED
#define BOOST_TT_ADD_REFERENCE_HPP_INCLUDED

#include <boost/detail/workaround.hpp>
#include <boost/config.hpp>

namespace boost {

namespace detail {

//
// We can't filter out rvalue_references at the same level as
// references or we get ambiguities from msvc:
//

template <typename T>
struct add_reference_impl
{
    typedef T& type;
};

#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
template <typename T>
struct add_reference_impl<T&&>
{
    typedef T&& type;
};
#endif

} // namespace detail

template <class T> struct add_reference
{
   typedef typename boost::detail::add_reference_impl<T>::type type;
};
template <class T> struct add_reference<T&>
{
   typedef T& type;
};

// these full specialisations are always required:
template <> struct add_reference<void> { typedef void type; };
#ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS
template <> struct add_reference<const void> { typedef void type; };
template <> struct add_reference<const volatile void> { typedef void type; };
template <> struct add_reference<volatile void> { typedef void type; };
#endif

} // namespace boost

#endif // BOOST_TT_ADD_REFERENCE_HPP_INCLUDED

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
passenger-5.1.4 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
passenger-5.1.3 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
passenger-5.1.2 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
passenger-5.1.1 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
passenger-5.1.0 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
passenger-5.0.30 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
passenger-5.0.29 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/passenger-5.0.28/src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
passenger-5.0.28 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
passenger-5.0.27 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
passenger-5.0.26 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp
passenger-5.0.25 src/cxx_supportlib/vendor-modified/boost/type_traits/add_reference.hpp