Sha256: 1c34833bcf25cb01123cdc131098dd7d6c3614e7ab9159ef74e197102cc9b269

Contents?: true

Size: 1.29 KB

Versions: 36

Compression:

Stored size: 1.29 KB

Contents

// Copyright (C) 2005 Arkadiy Vertleyb
// 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_TYPEOF_ENCODE_DECODE_PARAMS_HPP_INCLUDED
#define BOOST_TYPEOF_ENCODE_DECODE_PARAMS_HPP_INCLUDED

#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>

// Assumes iter0 contains initial iterator

#define BOOST_TYPEOF_DECODE_PARAM(z, n, text)   \
    typedef boost::type_of::decode_type<iter##n> decode##n;     \
    typedef typename decode##n::type p##n;      \
    typedef typename decode##n::iter BOOST_PP_CAT(iter, BOOST_PP_INC(n));

#define BOOST_TYPEOF_DECODE_PARAMS(n)\
    BOOST_PP_REPEAT(n, BOOST_TYPEOF_DECODE_PARAM, ~)

// The P0, P1, ... PN are encoded and added to V 

#define BOOST_TYPEOF_ENCODE_PARAMS_BEGIN(z, n, text)\
    typename boost::type_of::encode_type<

#define BOOST_TYPEOF_ENCODE_PARAMS_END(z, n, text)\
    , BOOST_PP_CAT(P, n)>::type

#define BOOST_TYPEOF_ENCODE_PARAMS(n, ID)                   \
    BOOST_PP_REPEAT(n, BOOST_TYPEOF_ENCODE_PARAMS_BEGIN, ~) \
    typename boost::type_of::push_back<V, boost::mpl::size_t<ID> >::type      \
    BOOST_PP_REPEAT(n, BOOST_TYPEOF_ENCODE_PARAMS_END, ~)

#endif//BOOST_TYPEOF_ENCODE_DECODE_PARAMS_HPP_INCLUDED

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
passenger-6.0.2 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-6.0.1 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-6.0.0 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.3.7 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.3.6 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.3.5 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.3.4 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.3.3 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.3.2 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.3.1 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.3.0 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.2.3 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.2.2 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.2.1 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.2.0 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.1.12 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.1.11 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.1.10 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.1.9 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp
passenger-5.1.8 src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp