advance_forward.hpp
Go to the documentation of this file.
1 
2 #if !defined(BOOST_PP_IS_ITERATING)
3 
5 
6 #ifndef BOOST_MPL_AUX_ADVANCE_FORWARD_HPP_INCLUDED
7 #define BOOST_MPL_AUX_ADVANCE_FORWARD_HPP_INCLUDED
8 
9 // Copyright Aleksey Gurtovoy 2000-2004
10 //
11 // Distributed under the Boost Software License, Version 1.0.
12 // (See accompanying file LICENSE_1_0.txt or copy at
13 // http://www.boost.org/LICENSE_1_0.txt)
14 //
15 // See http://www.boost.org/libs/mpl for documentation.
16 
17 // $Id: advance_forward.hpp 13472 2017-08-22 07:53:44Z richean $
18 // $Date: 2017-08-22 09:53:44 +0200 (Di, 22 Aug 2017) $
19 // $Revision: 13472 $
20 
21 #if !defined(BOOST_MPL_PREPROCESSING_MODE)
22 # include <boost/mpl/next.hpp>
23 # include <boost/mpl/apply_wrap.hpp>
24 #endif
25 
27 
28 #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
29  && !defined(BOOST_MPL_PREPROCESSING_MODE)
30 
31 # define BOOST_MPL_PREPROCESSED_HEADER advance_forward.hpp
33 
34 #else
35 
39 
43 
44 namespace boost { namespace mpl { namespace aux {
45 
46 // forward declaration
47 template< BOOST_MPL_AUX_NTTP_DECL(long, N) > struct advance_forward;
48 
49 # define BOOST_PP_ITERATION_PARAMS_1 \
50  (3,(0, BOOST_MPL_LIMIT_UNROLLING, <boost/mpl/aux_/advance_forward.hpp>))
51 # include BOOST_PP_ITERATE()
52 
53 // implementation for N that exceeds BOOST_MPL_LIMIT_UNROLLING
54 template< BOOST_MPL_AUX_NTTP_DECL(long, N) >
55 struct advance_forward
56 {
57  template< typename Iterator > struct apply
58  {
59  typedef typename apply_wrap1<
60  advance_forward<BOOST_MPL_LIMIT_UNROLLING>
61  , Iterator
63 
64  typedef typename apply_wrap1<
65  advance_forward<(
67  ? 0
69  )>
71  >::type type;
72  };
73 };
74 
75 }}}
76 
77 #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
78 #endif // BOOST_MPL_AUX_ADVANCE_FORWARD_HPP_INCLUDED
79 
81 
82 // For gcc 4.4 compatability, we must include the
83 // BOOST_PP_ITERATION_DEPTH test inside an #else clause.
84 #else // BOOST_PP_IS_ITERATING
85 #if BOOST_PP_ITERATION_DEPTH() == 1
86 #define i_ BOOST_PP_FRAME_ITERATION(1)
87 
88 template<>
89 struct advance_forward< BOOST_PP_FRAME_ITERATION(1) >
90 {
91  template< typename Iterator > struct apply
92  {
93  typedef Iterator iter0;
94 
95 #if i_ > 0
96 # define BOOST_PP_ITERATION_PARAMS_2 \
97  (3,(1, i_, <boost/mpl/aux_/advance_forward.hpp>))
98 # include BOOST_PP_ITERATE()
99 #endif
100  typedef BOOST_PP_CAT(iter,i_) type;
101  };
102 
103 #if defined(BOOST_MPL_CFG_MSVC_60_ETI_BUG)
104  template<> struct apply<int>
106  {
107  typedef int type;
108  };
109 #endif
110 };
111 
112 #undef i_
113 
115 
116 #elif BOOST_PP_ITERATION_DEPTH() == 2
117 
118 # define AUX778076_ITER_0 BOOST_PP_CAT(iter,BOOST_PP_DEC(BOOST_PP_FRAME_ITERATION(2)))
119 # define AUX778076_ITER_1 BOOST_PP_CAT(iter,BOOST_PP_FRAME_ITERATION(2))
120 
121  typedef typename next<AUX778076_ITER_0>::type AUX778076_ITER_1;
122 
123 # undef AUX778076_ITER_1
124 # undef AUX778076_ITER_0
125 
126 #endif // BOOST_PP_ITERATION_DEPTH()
127 #endif // BOOST_PP_IS_ITERATING
BOOST_PP_CAT
struct BOOST_PP_CAT(AUX778076_COUNT_ARGS_PREFIX, _count_args)
Definition: count_args.hpp:86
boost::mpl::aux::advance_forward::apply::chunk_result_
apply_wrap1< advance_forward< 4 >, Iterator >::type chunk_result_
Definition: preprocessed/bcc/advance_forward.hpp:83
use_preprocessed.hpp
boost::mpl::aux::advance_forward::apply::type
apply_wrap1< advance_forward<((N - 4)< 0 ? 0 :N - 4)>, chunk_result_ >::type type
Definition: preprocessed/bcc/advance_forward.hpp:92
boost
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
cat.hpp
BOOST_MPL_LIMIT_UNROLLING
#define BOOST_MPL_LIMIT_UNROLLING
Definition: unrolling.hpp:18
inc.hpp
nttp_decl.hpp
eti.hpp
apply_wrap.hpp
include_preprocessed.hpp
next.hpp
unrolling.hpp
BOOST_PP_FRAME_ITERATION
#define BOOST_PP_FRAME_ITERATION(i)
Definition: iteration/iterate.hpp:42
iterate.hpp


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 03:36:19