Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:16

0001 // Boost.Range library
0002 //
0003 //  Copyright Neil Groves 2014. Use, modification and
0004 //  distribution is subject to the Boost Software License, Version
0005 //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 //  http://www.boost.org/LICENSE_1_0.txt)
0007 //
0008 // For more information, see http://www.boost.org/libs/range/
0009 //
0010 #ifndef BOOST_RANGE_DETAIL_COMBINE_CXX03_HPP
0011 #define BOOST_RANGE_DETAIL_COMBINE_CXX03_HPP
0012 
0013 #ifndef BOOST_RANGE_MIN_COMBINE_ARGS
0014 #define BOOST_RANGE_MIN_COMBINE_ARGS 2
0015 #endif
0016 
0017 #ifndef BOOST_RANGE_MAX_COMBINE_ARGS
0018 #define BOOST_RANGE_MAX_COMBINE_ARGS 5
0019 #endif
0020 
0021 #include <boost/config.hpp>
0022 #include <boost/iterator/zip_iterator.hpp>
0023 #include <boost/preprocessor/arithmetic/dec.hpp>
0024 #include <boost/preprocessor/arithmetic/div.hpp>
0025 #include <boost/preprocessor/arithmetic/mul.hpp>
0026 #include <boost/preprocessor/control/if.hpp>
0027 #include <boost/preprocessor/control/while.hpp>
0028 #include <boost/preprocessor/facilities/empty.hpp>
0029 #include <boost/preprocessor/facilities/identity.hpp>
0030 #include <boost/preprocessor/iteration/local.hpp>
0031 #include <boost/preprocessor/repetition/enum.hpp>
0032 #include <boost/preprocessor/repetition/enum_params.hpp>
0033 #include <boost/preprocessor/repetition/repeat.hpp>
0034 #include <boost/preprocessor/tuple/elem.hpp>
0035 #include <boost/range/iterator_range_core.hpp>
0036 #include <boost/type_traits/remove_reference.hpp>
0037 
0038 namespace boost
0039 {
0040 
0041 namespace range
0042 {
0043 
0044 #define BOOST_RANGE_combined_seq(z, n, data) boost::data(BOOST_PP_CAT(r,n))
0045 
0046 #ifdef BOOST_NO_CXX11_RVALUE_REFERENCES
0047 
0048 #include <boost/range/detail/combine_no_rvalue.hpp>
0049 
0050 #else // by using rvalue references we avoid requiring 2^n overloads.
0051 
0052 #include <boost/range/detail/combine_rvalue.hpp>
0053 
0054 #endif
0055 
0056 #define BOOST_PP_LOCAL_MACRO(n) BOOST_RANGE_combine(~,n,~)
0057 #define BOOST_PP_LOCAL_LIMITS (BOOST_RANGE_MIN_COMBINE_ARGS, \
0058                                BOOST_RANGE_MAX_COMBINE_ARGS)
0059 #include BOOST_PP_LOCAL_ITERATE()
0060 
0061     } // namespace range
0062 
0063     using boost::range::combine;
0064 
0065 } // namespace boost
0066 
0067 #endif // include guard
0068 
0069 #undef BOOST_RANGE_combined_seq
0070 #undef BOOST_RANGE_combined_exp_pred
0071 #undef BOOST_RANGE_combined_exp_op
0072 #undef BOOST_RANGE_combined_exp
0073 #undef BOOST_RANGE_combined_bitset_pred
0074 #undef BOOST_RANGE_combined_bitset_op
0075 #undef BOOST_RANGE_combined_bitset
0076 #undef BOOST_RANGE_combined_range_iterator
0077 #undef BOOST_RANGE_combined_args
0078 #undef BOOST_RANGE_combine_impl
0079 #undef BOOST_RANGE_combine