Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:33:52

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #ifndef BOOST_PP_IS_ITERATING
0008 #if !defined(FUSION_AS_SET_0932005_1341)
0009 #define FUSION_AS_SET_0932005_1341
0010 
0011 #include <boost/preprocessor/iterate.hpp>
0012 #include <boost/preprocessor/repetition/enum_params.hpp>
0013 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
0014 #include <boost/preprocessor/repetition/repeat.hpp>
0015 #include <boost/preprocessor/cat.hpp>
0016 #include <boost/preprocessor/inc.hpp>
0017 #include <boost/preprocessor/dec.hpp>
0018 #include <boost/fusion/container/set/set.hpp>
0019 #include <boost/fusion/iterator/value_of.hpp>
0020 #include <boost/fusion/iterator/deref.hpp>
0021 #include <boost/fusion/iterator/next.hpp>
0022 
0023 namespace boost { namespace fusion { namespace detail
0024 {
0025 BOOST_FUSION_BARRIER_BEGIN
0026 
0027     template <int size>
0028     struct as_set
0029     {
0030         BOOST_STATIC_ASSERT_MSG(
0031             size <= FUSION_MAX_SET_SIZE
0032           , "FUSION_MAX_SET_SIZE limit is too low"
0033         );
0034     };
0035 
0036     template <>
0037     struct as_set<0>
0038     {
0039         template <typename Iterator>
0040         struct apply
0041         {
0042             typedef set<> type;
0043         };
0044 
0045         template <typename Iterator>
0046         BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0047         static typename apply<Iterator>::type
0048         call(Iterator)
0049         {
0050             return set<>();
0051         }
0052     };
0053 
0054 BOOST_FUSION_BARRIER_END
0055 }}}
0056 
0057 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
0058 #include <boost/fusion/container/set/detail/cpp03/preprocessed/as_set.hpp>
0059 #else
0060 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0061 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/as_set" FUSION_MAX_SET_SIZE_STR ".hpp")
0062 #endif
0063 
0064 /*=============================================================================
0065     Copyright (c) 2001-2011 Joel de Guzman
0066 
0067     Distributed under the Boost Software License, Version 1.0. (See accompanying
0068     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0069 
0070     This is an auto-generated file. Do not edit!
0071 ==============================================================================*/
0072 
0073 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0074 #pragma wave option(preserve: 1)
0075 #endif
0076 
0077 namespace boost { namespace fusion { namespace detail
0078 {
0079 BOOST_FUSION_BARRIER_BEGIN
0080 
0081 #define BOOST_FUSION_NEXT_ITERATOR(z, n, data)                                  \
0082     typedef typename fusion::result_of::next<BOOST_PP_CAT(I, n)>::type          \
0083         BOOST_PP_CAT(I, BOOST_PP_INC(n));
0084 
0085 #define BOOST_FUSION_NEXT_CALL_ITERATOR(z, n, data)                             \
0086     typename gen::BOOST_PP_CAT(I, BOOST_PP_INC(n))                              \
0087         BOOST_PP_CAT(i, BOOST_PP_INC(n)) = fusion::next(BOOST_PP_CAT(i, n));
0088 
0089 #define BOOST_FUSION_VALUE_OF_ITERATOR(z, n, data)                              \
0090     typedef typename fusion::result_of::value_of<BOOST_PP_CAT(I, n)>::type      \
0091         BOOST_PP_CAT(T, n);
0092 
0093 #define BOOST_PP_FILENAME_1 <boost/fusion/container/set/detail/cpp03/as_set.hpp>
0094 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_SET_SIZE)
0095 #include BOOST_PP_ITERATE()
0096 
0097 #undef BOOST_FUSION_NEXT_ITERATOR
0098 #undef BOOST_FUSION_NEXT_CALL_ITERATOR
0099 #undef BOOST_FUSION_VALUE_OF_ITERATOR
0100 
0101 BOOST_FUSION_BARRIER_END
0102 }}}
0103 
0104 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0105 #pragma wave option(output: null)
0106 #endif
0107 
0108 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
0109 
0110 #endif
0111 #else // defined(BOOST_PP_IS_ITERATING)
0112 ///////////////////////////////////////////////////////////////////////////////
0113 //
0114 //  Preprocessor vertical repetition code
0115 //
0116 ///////////////////////////////////////////////////////////////////////////////
0117 
0118 #define N BOOST_PP_ITERATION()
0119 
0120     template <>
0121     struct as_set<N>
0122     {
0123         template <typename I0>
0124         struct apply
0125         {
0126             BOOST_PP_REPEAT(N, BOOST_FUSION_NEXT_ITERATOR, _)
0127             BOOST_PP_REPEAT(N, BOOST_FUSION_VALUE_OF_ITERATOR, _)
0128             typedef set<BOOST_PP_ENUM_PARAMS(N, T)> type;
0129         };
0130 
0131         template <typename Iterator>
0132         BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0133         static typename apply<Iterator>::type
0134         call(Iterator const& i0)
0135         {
0136             typedef apply<Iterator> gen;
0137             typedef typename gen::type result;
0138             BOOST_PP_REPEAT(BOOST_PP_DEC(N), BOOST_FUSION_NEXT_CALL_ITERATOR, _)
0139             return result(BOOST_PP_ENUM_PARAMS(N, *i));
0140         }
0141     };
0142 
0143 #undef N
0144 #endif // defined(BOOST_PP_IS_ITERATING)
0145