arithmetic_op.hpp
Go to the documentation of this file.
1 
2 // NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION
3 
4 // Copyright Aleksey Gurtovoy 2000-2004
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 //
10 // See http://www.boost.org/libs/mpl for documentation.
11 
12 // $Id: arithmetic_op.hpp 13472 2017-08-22 07:53:44Z richean $
13 // $Date: 2017-08-22 09:53:44 +0200 (Di, 22 Aug 2017) $
14 // $Revision: 13472 $
15 
16 #if !defined(BOOST_MPL_PREPROCESSING_MODE)
17 # include <boost/mpl/integral_c.hpp>
20 #endif
21 
22 #if !defined(AUX778076_OP_PREFIX)
23 # define AUX778076_OP_PREFIX AUX778076_OP_NAME
24 #endif
25 
29 
30 #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
31  && !defined(BOOST_MPL_PREPROCESSING_MODE)
32 
33 # define BOOST_MPL_PREPROCESSED_HEADER AUX778076_OP_PREFIX.hpp
35 
36 #else
37 
40 
41 
42 namespace boost { namespace mpl {
43 
44 #if defined(BOOST_MPL_CFG_NO_NESTED_VALUE_ARITHMETIC)
45 namespace aux {
46 template< typename T, T n1, T n2 >
48 {
49  BOOST_STATIC_CONSTANT(T, value = (n1 AUX778076_OP_TOKEN n2));
50  typedef integral_c<T,value> type;
51 };
52 }
53 #endif
54 
55 template<>
56 struct AUX778076_OP_IMPL_NAME<integral_c_tag,integral_c_tag>
57 {
58  template< typename N1, typename N2 > struct apply
59 #if !defined(BOOST_MPL_CFG_NO_NESTED_VALUE_ARITHMETIC)
60  : integral_c<
61  typename aux::largest_int<
62  typename N1::value_type
63  , typename N2::value_type
64  >::type
65  , ( BOOST_MPL_AUX_VALUE_WKND(N1)::value
66  AUX778076_OP_TOKEN BOOST_MPL_AUX_VALUE_WKND(N2)::value
67  )
68  >
69 #else
70  : aux::BOOST_PP_CAT(AUX778076_OP_PREFIX,_wknd)<
71  typename aux::largest_int<
72  typename N1::value_type
73  , typename N2::value_type
74  >::type
75  , N1::value
76  , N2::value
77  >::type
78 #endif
79  {
80  };
81 };
82 
83 }}
84 
85 #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
86 
87 #undef AUX778076_OP_TAG_NAME
88 #undef AUX778076_OP_IMPL_NAME
89 #undef AUX778076_OP_ARITY
90 #undef AUX778076_OP_PREFIX
91 #undef AUX778076_OP_NAME
92 #undef AUX778076_OP_TOKEN
BOOST_STATIC_CONSTANT
#define BOOST_STATIC_CONSTANT(type, assignment)
Definition: suffix.hpp:394
boost::mpl::aux::BOOST_PP_CAT
struct BOOST_PP_CAT(AUX778076_OP_NAME, impl)
Definition: logical_op.hpp:64
T
T
Definition: mem_fn_cc.hpp:25
use_preprocessed.hpp
integral_c_tag
Definition: integral_c_tag.hpp:22
value_wknd.hpp
boost
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
cat.hpp
workaround.hpp
largest_int.hpp
AUX778076_OP_TOKEN
#define AUX778076_OP_TOKEN
Definition: equal_to.hpp:18
include_preprocessed.hpp
integral_c.hpp
AUX778076_OP_PREFIX
#define AUX778076_OP_PREFIX
Definition: arithmetic_op.hpp:23
integral_c
Definition: integral_c_fwd.hpp:26
numeric_op.hpp
static_constant.hpp


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