Sha256: b9942e540853907113fd874fdf6caa5dcea49e789a305d188288423691bdae35

Contents?: true

Size: 1.83 KB

Versions: 14

Compression:

Stored size: 1.83 KB

Contents

// Copyright David Abrahams, Daniel Wallin 2003.
// 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)

#ifndef BOOST_PARAMETER_AUX_PACK_TAG_DEDUCED_HPP
#define BOOST_PARAMETER_AUX_PACK_TAG_DEDUCED_HPP

#include <boost/parameter/aux_/set.hpp>
#include <boost/parameter/aux_/pack/tag_type.hpp>
#include <boost/parameter/config.hpp>

#if defined(BOOST_PARAMETER_CAN_USE_MP11)
#include <boost/mp11/list.hpp>
#include <boost/mp11/utility.hpp>
#else
#include <boost/mpl/pair.hpp>
#include <boost/mpl/apply_wrap.hpp>
#endif

namespace boost { namespace parameter { namespace aux {

    // Tags a deduced argument Arg with the keyword tag of Spec using TagFn.
    // Returns the tagged argument and the mpl::set<> UsedArgs with the
    // tag of Spec inserted.
    template <typename UsedArgs, typename Spec, typename Arg, typename TagFn>
    struct tag_deduced
    {
#if defined(BOOST_PARAMETER_CAN_USE_MP11)
        using type = ::boost::mp11::mp_list<
            ::boost::mp11::mp_apply_q<
                TagFn
              , ::boost::mp11::mp_list<
                    typename ::boost::parameter::aux::tag_type<Spec>::type
                  , Arg
                >
            >
#else
        typedef ::boost::mpl::pair<
            typename ::boost::mpl::apply_wrap2<
                TagFn
              , typename ::boost::parameter::aux::tag_type<Spec>::type
              , Arg
            >::type
#endif  // BOOST_PARAMETER_CAN_USE_MP11
          , typename ::boost::parameter::aux::insert_<
                UsedArgs
              , typename ::boost::parameter::aux::tag_type<Spec>::type
            >::type
#if defined(BOOST_PARAMETER_CAN_USE_MP11)
        >;
#else
        > type;
#endif
    };
}}} // namespace boost::parameter::aux

#endif  // include guard

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_deduced.hpp