Sha256: a23ec71cbe3e7ca74825a6d1c609816a878624f9e998dd277e8df0ca31454e13

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 KB

Contents

#ifndef BOOST_MP11_DETAIL_MP_RENAME_HPP_INCLUDED
#define BOOST_MP11_DETAIL_MP_RENAME_HPP_INCLUDED

//  Copyright 2015-2021 Peter Dimov.
//
//  Distributed under 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

namespace boost
{
namespace mp11
{

// mp_rename<L, B>
namespace detail
{

template<class A, template<class...> class B> struct mp_rename_impl
{
// An error "no type named 'type'" here means that the first argument to mp_rename is not a list
};

template<template<class...> class A, class... T, template<class...> class B> struct mp_rename_impl<A<T...>, B>
{
    using type = B<T...>;
};

} // namespace detail

template<class A, template<class...> class B> using mp_rename = typename detail::mp_rename_impl<A, B>::type;

template<template<class...> class F, class L> using mp_apply = typename detail::mp_rename_impl<L, F>::type;

template<class Q, class L> using mp_apply_q = typename detail::mp_rename_impl<L, Q::template fn>::type;

} // namespace mp11
} // namespace boost

#endif // #ifndef BOOST_MP11_DETAIL_MP_RENAME_HPP_INCLUDED

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_rename.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_rename.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_rename.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_rename.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_rename.hpp