Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //  Copyright Neil Groves 2014. Use, modification and
0002 //  distribution is subject to the Boost Software License, Version
0003 //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
0004 //  http://www.boost.org/LICENSE_1_0.txt)
0005 //
0006 //
0007 // For more information, see http://www.boost.org/libs/range/
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     } // namespace range
0033 
0034 using range::combine;
0035 
0036 } // namespace boost
0037 
0038 #endif // include guard