File indexing completed on 2025-01-18 09:51:16
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_RANGE_DETAIL_COMBINE_CXX11_HPP
0010 #define BOOST_RANGE_DETAIL_COMBINE_CXX11_HPP
0011
0012 #include <boost/range/iterator_range_core.hpp>
0013 #include <boost/range/iterator.hpp>
0014 #include <boost/range/begin.hpp>
0015 #include <boost/range/end.hpp>
0016 #include <boost/iterator/zip_iterator.hpp>
0017
0018 namespace boost
0019 {
0020 namespace range
0021 {
0022
0023 template<typename... Ranges>
0024 auto combine(Ranges&&... rngs) ->
0025 combined_range<decltype(boost::make_tuple(boost::begin(rngs)...))>
0026 {
0027 return combined_range<decltype(boost::make_tuple(boost::begin(rngs)...))>(
0028 boost::make_tuple(boost::begin(rngs)...),
0029 boost::make_tuple(boost::end(rngs)...));
0030 }
0031
0032 }
0033
0034 using range::combine;
0035
0036 }
0037
0038 #endif