advance.hpp
Go to the documentation of this file.
1 
2 #ifndef BOOST_MPL_ADVANCE_HPP_INCLUDED
3 #define BOOST_MPL_ADVANCE_HPP_INCLUDED
4 
5 // Copyright Aleksey Gurtovoy 2000-2004
6 //
7 // Distributed under the Boost Software License, Version 1.0.
8 // (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
10 //
11 // See http://www.boost.org/libs/mpl for documentation.
12 
13 // $Id: advance.hpp 13472 2017-08-22 07:53:44Z richean $
14 // $Date: 2017-08-22 09:53:44 +0200 (Di, 22 Aug 2017) $
15 // $Revision: 13472 $
16 
18 #include <boost/mpl/less.hpp>
19 #include <boost/mpl/negate.hpp>
20 #include <boost/mpl/long.hpp>
21 #include <boost/mpl/if.hpp>
22 #include <boost/mpl/tag.hpp>
23 #include <boost/mpl/apply_wrap.hpp>
29 
30 namespace boost { namespace mpl {
31 
32 // default implementation for forward/bidirectional iterators
33 template< typename Tag >
35 {
36  template< typename Iterator, typename N > struct apply
37  {
38  typedef typename less< N,long_<0> >::type backward_;
40 
41  typedef typename if_<
42  backward_
44  , aux::advance_forward< BOOST_MPL_AUX_VALUE_WKND(offset_)::value >
45  >::type f_;
46 
48  };
49 };
50 
51 
52 template<
53  typename BOOST_MPL_AUX_NA_PARAM(Iterator)
54  , typename BOOST_MPL_AUX_NA_PARAM(N)
55  >
56 struct advance
57  : advance_impl< typename tag<Iterator>::type >
58  ::template apply<Iterator,N>
59 {
60 };
61 
62 template<
63  typename Iterator
64  , BOOST_MPL_AUX_NTTP_DECL(long, N)
65  >
66 struct advance_c
67  : advance_impl< typename tag<Iterator>::type >
68  ::template apply<Iterator,long_<N> >
69 {
70 };
71 
73 
74 }}
75 
76 #endif // BOOST_MPL_ADVANCE_HPP_INCLUDED
boost::mpl::advance_impl::apply::backward_
less< N, long_< 0 > >::type backward_
Definition: advance.hpp:38
boost::mpl::apply_wrap1::type
msvc_apply1< F >::template result_< T1 >::type type
Definition: aux_/preprocessed/msvc60/apply_wrap.hpp:77
less.hpp
boost::mpl::advance_impl
Definition: advance.hpp:34
BOOST_MPL_AUX_NA_PARAM
#define BOOST_MPL_AUX_NA_PARAM(param)
Definition: na_spec.hpp:152
BOOST_MPL_AUX_NTTP_DECL
#define BOOST_MPL_AUX_NTTP_DECL(T, x)
Definition: nttp_decl.hpp:31
na_spec.hpp
value_wknd.hpp
BOOST_MPL_AUX_NA_SPEC
#define BOOST_MPL_AUX_NA_SPEC(i, name)
Definition: na_spec.hpp:161
boost
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
advance_forward.hpp
boost::mpl::aux::advance_backward
Definition: preprocessed/bcc/advance_backward.hpp:14
long.hpp
boost::mpl::advance_impl::apply::f_
if_< backward_, aux::advance_backward< BOOST_MPL_AUX_VALUE_WKND(offset_)::value >, aux::advance_forward< BOOST_MPL_AUX_VALUE_WKND(offset_)::value > >::type f_
Definition: advance.hpp:45
boost::mpl::advance_c
Definition: advance.hpp:66
negate.hpp
nttp_decl.hpp
boost::mpl::less
Definition: aux_/preprocessed/bcc/less.hpp:67
boost::mpl::advance_impl::apply::offset_
if_< backward_, negate< N >, N >::type offset_
Definition: advance.hpp:39
tag.hpp
apply_wrap.hpp
boost::mpl::apply
primary template (not a specialization!)
Definition: aux_/preprocessed/bcc/apply.hpp:163
boost::mpl::advance_impl::apply::type
apply_wrap1< f_, Iterator >::type type
Definition: advance.hpp:47
boost::mpl::if_
Definition: dmc/basic_bind.hpp:374
advance_fwd.hpp
boost::mpl::advance
Definition: advance.hpp:56
boost::mpl::advance_impl::apply
Definition: advance.hpp:36
if.hpp
advance_backward.hpp
BOOST_MPL_AUX_VALUE_WKND
#define BOOST_MPL_AUX_VALUE_WKND(C)
Definition: value_wknd.hpp:57


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