annotate DEPENDENCIES/generic/include/boost/range/detail/combine_rvalue.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 // Boost.Range library
Chris@102 2 //
Chris@102 3 // Copyright Neil Groves 2014. Use, modification and
Chris@102 4 // distribution is subject to the Boost Software License, Version
Chris@102 5 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@102 6 // http://www.boost.org/LICENSE_1_0.txt)
Chris@102 7 //
Chris@102 8 // For more information, see http://www.boost.org/libs/range/
Chris@102 9 //
Chris@102 10 #define BOOST_RANGE_combined_args(z, n, i) \
Chris@102 11 BOOST_PP_CAT(R, n)&& BOOST_PP_CAT(r, n)
Chris@102 12
Chris@102 13 #define BOOST_RANGE_combined_range_iterator(z, n, i) \
Chris@102 14 typename range_iterator< \
Chris@102 15 typename remove_reference<BOOST_PP_CAT(R,n)>::type \
Chris@102 16 >::type
Chris@102 17
Chris@102 18
Chris@102 19 #define BOOST_RANGE_combine(z, n, data) \
Chris@102 20 template <BOOST_PP_ENUM_PARAMS(n, typename R)> \
Chris@102 21 inline range::combined_range< \
Chris@102 22 tuple<BOOST_PP_ENUM(n, BOOST_RANGE_combined_range_iterator, ~)> \
Chris@102 23 > \
Chris@102 24 combine(BOOST_PP_ENUM(n, BOOST_RANGE_combined_args, ~)) \
Chris@102 25 { \
Chris@102 26 typedef tuple< \
Chris@102 27 BOOST_PP_ENUM(n, BOOST_RANGE_combined_range_iterator, ~) \
Chris@102 28 > rng_tuple_t; \
Chris@102 29 return range::combined_range<rng_tuple_t>( \
Chris@102 30 rng_tuple_t(BOOST_PP_ENUM(n, BOOST_RANGE_combined_seq, begin)), \
Chris@102 31 rng_tuple_t(BOOST_PP_ENUM(n, BOOST_RANGE_combined_seq, end))); \
Chris@102 32 }