/usr/include/boost/parameter/aux_/preprocessor/impl
NameSizeModeActions
argument_specs.hpp9380644editdlrm
arity_range.hpp16560644editdlrm
flatten.hpp70570644editdlrm
forwarding_overloads.hpp322900644editdlrm
for_each.hpp68760644editdlrm
function_cast.hpp241050644editdlrm
function_dispatch_layer.hpp292030644editdlrm
function_dispatch_tuple.hpp10640644editdlrm
function_forward_match.hpp15260644editdlrm
function_name.hpp73720644editdlrm
no_spec_overloads.hpp196670644editdlrm
parenthesized_return_type.hpp36830644editdlrm
parenthesized_type.hpp10860644editdlrm
specification.hpp53960644editdlrm
split_args.hpp32660644editdlrm
Edit: /usr/include/boost/parameter/aux_/preprocessor/impl/split_args.hpp (3266B)
// Copyright Daniel Wallin 2006. // 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_PREPROCESSOR_IMPL_SPLIT_ARGS_HPP #define BOOST_PARAMETER_AUX_PREPROCESSOR_IMPL_SPLIT_ARGS_HPP #include // Accessor macros for the split_args tuple. #define BOOST_PARAMETER_SPLIT_ARG_REQ_COUNT(x) BOOST_PP_TUPLE_ELEM(4, 0, x) #define BOOST_PARAMETER_SPLIT_ARG_REQ_SEQ(x) BOOST_PP_TUPLE_ELEM(4, 1, x) #define BOOST_PARAMETER_SPLIT_ARG_OPT_COUNT(x) BOOST_PP_TUPLE_ELEM(4, 2, x) #define BOOST_PARAMETER_SPLIT_ARG_OPT_SEQ(x) BOOST_PP_TUPLE_ELEM(4, 3, x) #include #include // Helper macros for BOOST_PARAMETER_FUNCTION_SPLIT_ARGS. #define BOOST_PARAMETER_FUNCTION_SPLIT_ARG_required(s_a, arg) \ ( \ BOOST_PP_INC(BOOST_PARAMETER_SPLIT_ARG_REQ_COUNT(s_a)) \ , BOOST_PP_SEQ_PUSH_BACK(BOOST_PARAMETER_SPLIT_ARG_REQ_SEQ(s_a), arg) \ , BOOST_PARAMETER_SPLIT_ARG_OPT_COUNT(s_a) \ , BOOST_PARAMETER_SPLIT_ARG_OPT_SEQ(s_a) \ ) /**/ #define BOOST_PARAMETER_FUNCTION_SPLIT_ARG_deduced_required(split_args, arg) \ BOOST_PARAMETER_FUNCTION_SPLIT_ARG_required(split_args, arg) /**/ #define BOOST_PARAMETER_FUNCTION_SPLIT_ARG_optional(s_a, arg) \ ( \ BOOST_PARAMETER_SPLIT_ARG_REQ_COUNT(s_a) \ , BOOST_PARAMETER_SPLIT_ARG_REQ_SEQ(s_a) \ , BOOST_PP_INC(BOOST_PARAMETER_SPLIT_ARG_OPT_COUNT(s_a)) \ , BOOST_PP_SEQ_PUSH_BACK(BOOST_PARAMETER_SPLIT_ARG_OPT_SEQ(s_a), arg) \ ) /**/ #define BOOST_PARAMETER_FUNCTION_SPLIT_ARG_deduced_optional(split_args, arg) \ BOOST_PARAMETER_FUNCTION_SPLIT_ARG_optional(split_args, arg) /**/ #include #include #define BOOST_PARAMETER_FUNCTION_SPLIT_ARG(s, split_args, arg) \ BOOST_PP_CAT( \ BOOST_PARAMETER_FUNCTION_SPLIT_ARG_ \ , BOOST_PARAMETER_FN_ARG_QUALIFIER(arg) \ )(split_args, arg) /**/ #include #include // Expands from the flattened BOOST_PARAMETER_FUNCTION et. al. arg sequence to // the tuple (required_count, required_args, optional_count, optional_args). #define BOOST_PARAMETER_FUNCTION_SPLIT_ARGS(args) \ BOOST_PP_SEQ_FOLD_LEFT( \ BOOST_PARAMETER_FUNCTION_SPLIT_ARG \ , (0, BOOST_PP_SEQ_NIL, 0, BOOST_PP_SEQ_NIL) \ , args \ ) /**/ #endif // include guard