Sha256: 39c1ec677827e283f631b24a4e0c05cbf0519a34e2b985dcf2e776f14a81fe76

Contents?: true

Size: 1.3 KB

Versions: 85

Compression:

Stored size: 1.3 KB

Contents

//  (C) Copyright John Maddock & Thorsten Ottosen 2005.
//  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_DECAY_HPP_INCLUDED
#define BOOST_TT_DECAY_HPP_INCLUDED

#include <boost/type_traits/config.hpp>
#include <boost/type_traits/is_array.hpp>
#include <boost/type_traits/is_function.hpp>
#include <boost/type_traits/remove_bounds.hpp>
#include <boost/type_traits/add_pointer.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include <boost/mpl/eval_if.hpp>
#include <boost/mpl/identity.hpp>

namespace boost 
{

    template< class T >
    struct decay
    {
    private:
        typedef BOOST_DEDUCED_TYPENAME remove_reference<T>::type Ty;
    public:
        typedef BOOST_DEDUCED_TYPENAME mpl::eval_if< 
            is_array<Ty>,
            mpl::identity<BOOST_DEDUCED_TYPENAME remove_bounds<Ty>::type*>,
            BOOST_DEDUCED_TYPENAME mpl::eval_if< 
                is_function<Ty>,
                add_pointer<Ty>,
                mpl::identity<Ty>
            >
        >::type type;
    };
    
} // namespace boost


#endif // BOOST_TT_DECAY_HPP_INCLUDED

Version data entries

85 entries across 85 versions & 2 rubygems

Version Path
passenger-5.0.24 src/cxx_supportlib/vendor-modified/boost/type_traits/decay.hpp
passenger-5.0.23 src/cxx_supportlib/vendor-modified/boost/type_traits/decay.hpp
passenger-5.0.22 src/cxx_supportlib/vendor-modified/boost/type_traits/decay.hpp
passenger-4.0.60 ext/boost/type_traits/decay.hpp
passenger-5.0.21 src/cxx_supportlib/vendor-modified/boost/type_traits/decay.hpp
passenger-5.0.20 src/cxx_supportlib/vendor-modified/boost/type_traits/decay.hpp
passenger-5.0.19 src/cxx_supportlib/vendor-modified/boost/type_traits/decay.hpp
passenger-5.0.18 ext/boost/type_traits/decay.hpp
passenger-5.0.17 ext/boost/type_traits/decay.hpp
passenger-5.0.16 ext/boost/type_traits/decay.hpp
passenger-5.0.15 ext/boost/type_traits/decay.hpp
passenger-5.0.14 ext/boost/type_traits/decay.hpp
passenger-5.0.13 ext/boost/type_traits/decay.hpp
passenger-5.0.11 ext/boost/type_traits/decay.hpp
passenger-5.0.10 ext/boost/type_traits/decay.hpp
passenger-5.0.9 ext/boost/type_traits/decay.hpp
passenger-5.0.8 ext/boost/type_traits/decay.hpp
buncher-1.0.5 ext/boost/1.57.0/include/boost//type_traits/decay.hpp
passenger-5.0.7 ext/boost/type_traits/decay.hpp
passenger-5.0.6 ext/boost/type_traits/decay.hpp