Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/fusion/algorithm/transformation/flatten.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 /*////////////////////////////////////////////////////////////////////////////// |
Chris@102 | 2 Copyright (c) 2013 Jamboree |
Chris@102 | 3 |
Chris@102 | 4 Distributed under the Boost Software License, Version 1.0. (See accompanying |
Chris@102 | 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@102 | 6 //////////////////////////////////////////////////////////////////////////////*/ |
Chris@102 | 7 #ifndef BOOST_FUSION_ALGORITHM_FLATTEN_HPP_INCLUDED |
Chris@102 | 8 #define BOOST_FUSION_ALGORITHM_FLATTEN_HPP_INCLUDED |
Chris@102 | 9 |
Chris@102 | 10 |
Chris@102 | 11 #include <boost/fusion/view/flatten_view.hpp> |
Chris@102 | 12 #include <boost/fusion/support/is_sequence.hpp> |
Chris@102 | 13 #include <boost/utility/enable_if.hpp> |
Chris@102 | 14 |
Chris@102 | 15 |
Chris@102 | 16 namespace boost { namespace fusion { namespace result_of |
Chris@102 | 17 { |
Chris@102 | 18 template<typename Sequence> |
Chris@102 | 19 struct flatten |
Chris@102 | 20 { |
Chris@102 | 21 typedef flatten_view<Sequence> type; |
Chris@102 | 22 }; |
Chris@102 | 23 }}} |
Chris@102 | 24 |
Chris@102 | 25 namespace boost { namespace fusion |
Chris@102 | 26 { |
Chris@102 | 27 template <typename Sequence> |
Chris@102 | 28 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED |
Chris@102 | 29 inline typename result_of::flatten<Sequence>::type |
Chris@102 | 30 flatten(Sequence& view) |
Chris@102 | 31 { |
Chris@102 | 32 return flatten_view<Sequence>(view); |
Chris@102 | 33 } |
Chris@102 | 34 |
Chris@102 | 35 template <typename Sequence> |
Chris@102 | 36 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED |
Chris@102 | 37 inline typename result_of::flatten<Sequence const>::type |
Chris@102 | 38 flatten(Sequence const& view) |
Chris@102 | 39 { |
Chris@102 | 40 return flatten_view<Sequence const>(view); |
Chris@102 | 41 } |
Chris@102 | 42 }} |
Chris@102 | 43 |
Chris@102 | 44 |
Chris@102 | 45 #endif |
Chris@102 | 46 |