Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/range/detail/combine_cxx11.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 // Copyright Neil Groves 2014. Use, modification and |
Chris@102 | 2 // distribution is subject to the Boost Software License, Version |
Chris@102 | 3 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
Chris@102 | 4 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@102 | 5 // |
Chris@102 | 6 // |
Chris@102 | 7 // For more information, see http://www.boost.org/libs/range/ |
Chris@102 | 8 // |
Chris@102 | 9 #ifndef BOOST_RANGE_DETAIL_COMBINE_CXX11_HPP |
Chris@102 | 10 #define BOOST_RANGE_DETAIL_COMBINE_CXX11_HPP |
Chris@102 | 11 |
Chris@102 | 12 #include <boost/range/iterator_range_core.hpp> |
Chris@102 | 13 #include <boost/range/iterator.hpp> |
Chris@102 | 14 #include <boost/range/begin.hpp> |
Chris@102 | 15 #include <boost/range/end.hpp> |
Chris@102 | 16 #include <boost/iterator/zip_iterator.hpp> |
Chris@102 | 17 |
Chris@102 | 18 #include <fstream> |
Chris@102 | 19 |
Chris@102 | 20 namespace boost |
Chris@102 | 21 { |
Chris@102 | 22 namespace range |
Chris@102 | 23 { |
Chris@102 | 24 |
Chris@102 | 25 template<typename... Ranges> |
Chris@102 | 26 auto combine(Ranges&&... rngs) -> |
Chris@102 | 27 combined_range<decltype(boost::make_tuple(boost::begin(rngs)...))> |
Chris@102 | 28 { |
Chris@102 | 29 return combined_range<decltype(boost::make_tuple(boost::begin(rngs)...))>( |
Chris@102 | 30 boost::make_tuple(boost::begin(rngs)...), |
Chris@102 | 31 boost::make_tuple(boost::end(rngs)...)); |
Chris@102 | 32 } |
Chris@102 | 33 |
Chris@102 | 34 } // namespace range |
Chris@102 | 35 |
Chris@102 | 36 using range::combine; |
Chris@102 | 37 |
Chris@102 | 38 } // namespace boost |
Chris@102 | 39 |
Chris@102 | 40 #endif // include guard |