Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/fusion/adapted/struct/detail/begin_impl.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 | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 /*============================================================================= |
Chris@16 | 2 Copyright (c) 2001-2011 Joel de Guzman |
Chris@16 | 3 Copyright (c) 2005-2006 Dan Marsden |
Chris@16 | 4 Copyright (c) 2009-2010 Christopher Schmidt |
Chris@16 | 5 |
Chris@16 | 6 Distributed under the Boost Software License, Version 1.0. (See accompanying |
Chris@16 | 7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 8 ==============================================================================*/ |
Chris@16 | 9 |
Chris@16 | 10 #ifndef BOOST_FUSION_ADAPTED_STRUCT_DETAIL_BEGIN_IMPL_HPP |
Chris@16 | 11 #define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_BEGIN_IMPL_HPP |
Chris@16 | 12 |
Chris@101 | 13 #include <boost/fusion/support/config.hpp> |
Chris@16 | 14 #include <boost/fusion/iterator/basic_iterator.hpp> |
Chris@16 | 15 |
Chris@16 | 16 namespace boost { namespace fusion { namespace extension |
Chris@16 | 17 { |
Chris@16 | 18 template<typename> |
Chris@16 | 19 struct begin_impl; |
Chris@16 | 20 |
Chris@16 | 21 template <> |
Chris@16 | 22 struct begin_impl<struct_tag> |
Chris@16 | 23 { |
Chris@16 | 24 template <typename Seq> |
Chris@16 | 25 struct apply |
Chris@16 | 26 { |
Chris@16 | 27 typedef |
Chris@16 | 28 basic_iterator< |
Chris@16 | 29 struct_iterator_tag |
Chris@16 | 30 , random_access_traversal_tag |
Chris@16 | 31 , Seq |
Chris@16 | 32 , 0 |
Chris@16 | 33 > |
Chris@16 | 34 type; |
Chris@16 | 35 |
Chris@101 | 36 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED |
Chris@16 | 37 static type |
Chris@16 | 38 call(Seq& seq) |
Chris@16 | 39 { |
Chris@16 | 40 return type(seq,0); |
Chris@16 | 41 } |
Chris@16 | 42 }; |
Chris@16 | 43 }; |
Chris@16 | 44 |
Chris@16 | 45 template <> |
Chris@16 | 46 struct begin_impl<assoc_struct_tag> |
Chris@16 | 47 { |
Chris@16 | 48 template <typename Seq> |
Chris@16 | 49 struct apply |
Chris@16 | 50 { |
Chris@16 | 51 typedef |
Chris@16 | 52 basic_iterator< |
Chris@16 | 53 struct_iterator_tag |
Chris@16 | 54 , assoc_struct_category |
Chris@16 | 55 , Seq |
Chris@16 | 56 , 0 |
Chris@16 | 57 > |
Chris@16 | 58 type; |
Chris@16 | 59 |
Chris@101 | 60 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED |
Chris@16 | 61 static type |
Chris@16 | 62 call(Seq& seq) |
Chris@16 | 63 { |
Chris@16 | 64 return type(seq,0); |
Chris@16 | 65 } |
Chris@16 | 66 }; |
Chris@16 | 67 }; |
Chris@16 | 68 }}} |
Chris@16 | 69 |
Chris@16 | 70 #endif |