/third_party/boost/libs/numeric/conversion/test/ |
D | numeric_cast_test.cpp | 49 c = numeric_cast<signed char>( small_value ); in test_main() 52 c = numeric_cast<signed char>( small_value ); in test_main() 55 c = numeric_cast<signed char>( small_negative_value ); in test_main() 59 BOOST_CHECK( 0.0f == numeric_cast<float>( 0.0 ) ); in test_main() 60 BOOST_CHECK( 0.0 == numeric_cast<double>( 0.0 ) ); in test_main() 65 try { c = numeric_cast<signed char>( large_value ); } in test_main() 71 try { c = numeric_cast<signed char>( large_negative_value ); } in test_main() 78 try { ul = numeric_cast<unsigned long>( large_negative_value ); } in test_main() 84 try { ul = numeric_cast<unsigned long>( small_negative_value ); } in test_main() 90 try { numeric_cast<int>( DBL_MAX ); } in test_main()
|
D | udt_example_0.cpp | 75 BOOST_CHECK( numeric_cast<double>(Dv) == static_cast<double>(Dv) ) ; in simplest_case() 76 BOOST_CHECK( numeric_cast<Double>(dv) == static_cast<Double>(dv) ) ; in simplest_case() 78 BOOST_CHECK( numeric_cast<float> (Dv) == static_cast<float> (Dv) ) ; in simplest_case() 79 BOOST_CHECK( numeric_cast<Double>(fv) == static_cast<Double>(fv) ) ; in simplest_case() 113 BOOST_CHECK( numeric_cast<int>(Dv) == static_cast<int>(Dv) ) ; in rounding() 190 BOOST_CHECK(numeric_cast<Int> (f).mV == i .mV ) ; in custom_raw_converter() 191 BOOST_CHECK(numeric_cast<Float>(i).mV == fi.mV ) ; in custom_raw_converter()
|
D | numeric_cast_traits_test.cpp | 333 Double d = boost::numeric_cast<Double>( static_cast<T>(50) ); in operator ()() 335 T v = boost::numeric_cast<T>( d ); in operator ()() 362 BOOST_TEST_CATCH_CUSTOM_POSITIVE_OVERFLOW( d = boost::numeric_cast<Double>( 101 ) ); in test_numeric_cast_traits() 364 BOOST_TEST_CATCH_CUSTOM_NEGATIVE_OVERFLOW( d = boost::numeric_cast<Double>( -101 ) ); in test_numeric_cast_traits() 369 int five = boost::numeric_cast<int>( d ); in test_numeric_cast_traits()
|
/third_party/boost/boost/geometry/algorithms/detail/ |
D | assign_values.hpp | 136 geometry::set<0>(point, boost::numeric_cast<coordinate_type>(get<Corner1, 0>(box))); in assign_box_2d_corner() 137 geometry::set<1>(point, boost::numeric_cast<coordinate_type>(get<Corner2, 1>(box))); in assign_box_2d_corner() 153 geometry::set<Index, Dimension>(geometry, boost::numeric_cast in apply() 195 geometry::set<Dimension>( point, boost::numeric_cast in apply() 239 geometry::set<0, 0>(geometry, boost::numeric_cast<coordinate_type>(x1)); in apply() 240 geometry::set<0, 1>(geometry, boost::numeric_cast<coordinate_type>(y1)); in apply() 241 geometry::set<1, 0>(geometry, boost::numeric_cast<coordinate_type>(x2)); in apply() 242 geometry::set<1, 1>(geometry, boost::numeric_cast<coordinate_type>(y2)); in apply() 272 set<0>(point, boost::numeric_cast<coordinate_type>(c1)); in apply() 273 set<1>(point, boost::numeric_cast<coordinate_type>(c2)); in apply() [all …]
|
D | convert_indexed_to_indexed.hpp | 48 boost::numeric_cast<coordinate_type>( in apply() 51 boost::numeric_cast<coordinate_type>( in apply()
|
/third_party/boost/libs/numeric/conversion/doc/ |
D | numeric_cast.qbk | 11 [section Improved numeric_cast<>] 18 [link boost_numericconversion.improved_numeric_cast__.numeric_cast `numeric_cast`] 37 By default `numeric_cast` adheres to the rules for implicit conversions mandated by 45 [section numeric_cast] 48 Target numeric_cast( Source arg ) 65 `numeric_cast` returns the result of converting a value of type Source 85 The behavior of `numeric_cast` may be tailored for custom numeric types through 102 using boost::numeric_cast; 111 short s=numeric_cast<short>(i); // This conversion succeeds (is in range) 125 unsigned int i=numeric_cast<unsigned int>(f); [all …]
|
D | conversion.qbk | 86 [include numeric_cast.qbk] 96 the previous version of `numeric_cast<>` which already presented the idea of a runtime 100 that `numeric_cast<>` which prevented it from being used in a generic layer of math 103 * An improved `numeric_cast<>` which properly handled all combinations of arithmetic 107 `numeric_cast<>` and supported the submission as originally laid out. Daryl Walker and 111 problems with `numeric_cast<>` himself, he revised very carefully the original submission
|
/third_party/boost/boost/geometry/strategies/cartesian/ |
D | centroid_bashein_detmer.hpp | 187 calculation_type const x1 = boost::numeric_cast<calculation_type>(get<0>(p1)); in apply() 188 calculation_type const y1 = boost::numeric_cast<calculation_type>(get<1>(p1)); in apply() 189 calculation_type const x2 = boost::numeric_cast<calculation_type>(get<0>(p2)); in apply() 190 calculation_type const y2 = boost::numeric_cast<calculation_type>(get<1>(p2)); in apply() 218 boost::numeric_cast<coordinate_type>(state.sum_x / a3)); in result() 220 boost::numeric_cast<coordinate_type>(state.sum_y / a3)); in result()
|
D | distance_pythagoras_box_box.hpp | 53 boost::numeric_cast<T>(geometry::get<min_corner, I-1>(box1)); in apply() 55 boost::numeric_cast<T>(geometry::get<max_corner, I-1>(box1)); in apply() 58 boost::numeric_cast<T>(geometry::get<min_corner, I-1>(box2)); in apply() 60 boost::numeric_cast<T>(geometry::get<max_corner, I-1>(box2)); in apply() 190 boost::numeric_cast<typename calculation_type in apply()
|
D | distance_pythagoras.hpp | 49 T const c1 = boost::numeric_cast<T>(get<I-1>(p1)); in apply() 50 T const c2 = boost::numeric_cast<T>(get<I-1>(p2)); in apply() 62 return boost::numeric_cast<T>(0); in apply() 166 boost::numeric_cast<typename calculation_type<P1, P2>::type> in apply()
|
D | distance_pythagoras_point_box.hpp | 52 T const p_coord = boost::numeric_cast<T>(geometry::get<I-1>(point)); in apply() 54 boost::numeric_cast<T>(geometry::get<min_corner, I-1>(box)); in apply() 56 boost::numeric_cast<T>(geometry::get<max_corner, I-1>(box)); in apply() 185 boost::numeric_cast<typename calculation_type in apply()
|
D | disjoint_segment_box.hpp | 65 RelativeDistance c_p0 = boost::numeric_cast in apply() 70 RelativeDistance c_p1 = boost::numeric_cast in apply() 75 RelativeDistance c_b_min = boost::numeric_cast in apply() 80 RelativeDistance c_b_max = boost::numeric_cast in apply()
|
D | intersection.hpp | 231 = boost::numeric_cast<calc_type>(ratio.numerator()); in assign() 233 = boost::numeric_cast<calc_type>(ratio.denominator()); in assign() 234 calc_type const dx_calc = boost::numeric_cast<calc_type>(dx); in assign() 235 calc_type const dy_calc = boost::numeric_cast<calc_type>(dy); in assign() 238 + boost::numeric_cast<CoordinateType>(numerator * dx_calc in assign() 241 + boost::numeric_cast<CoordinateType>(numerator * dy_calc in assign()
|
/third_party/boost/libs/mpl/doc/src/refmanual/ |
D | numeric_cast.rst | 1 .. Metafunctions/Miscellaneous//numeric_cast |50 3 numeric_cast title 15 struct numeric_cast; 21 Each ``numeric_cast`` specialization is a user-specialized unary |Metafunction Class| 30 #include <boost/mpl/numeric_cast.hpp> 54 typedef apply_wrap\ ``2``\< numeric_cast<x_tag,y_tag>,x >::type r; 89 template<> struct numeric_cast< integral_c_tag,complex_tag >
|
/third_party/boost/boost/date_time/posix_time/ |
D | posix_time_duration.hpp | 31 time_duration(numeric_cast<hour_type>(h), 0, 0) in hours() 45 time_duration(0, numeric_cast<min_type>(m),0) in minutes() 59 time_duration(0,0, numeric_cast<sec_type>(s)) in seconds()
|
D | time_serialize.hpp | 64 TimeResTraitsSize h = boost::numeric_cast<TimeResTraitsSize>(td.hours()); in BOOST_DATE_TIME_SPLIT_FREE() 65 TimeResTraitsSize m = boost::numeric_cast<TimeResTraitsSize>(td.minutes()); in BOOST_DATE_TIME_SPLIT_FREE() 66 TimeResTraitsSize s = boost::numeric_cast<TimeResTraitsSize>(td.seconds()); in BOOST_DATE_TIME_SPLIT_FREE()
|
/third_party/boost/boost/geometry/index/detail/ |
D | bounded_view.hpp | 78 return boost::numeric_cast<coordinate_type>( in get_min() 86 return boost::numeric_cast<coordinate_type>( in get_max() 149 return boost::numeric_cast<coordinate_type>( in get_min() 156 return boost::numeric_cast<coordinate_type>( in get_max() 179 return boost::numeric_cast<coordinate_type>( in get_min() 186 return boost::numeric_cast<coordinate_type>( in get_max()
|
/third_party/boost/boost/geometry/core/ |
D | radian_access.hpp | 52 return boost::numeric_cast in get() 61 geometry::set<Dimension>(geometry, boost::numeric_cast in set() 117 return boost::numeric_cast in get() 126 geometry::set<Index, Dimension>(geometry, boost::numeric_cast in set()
|
/third_party/boost/boost/geometry/strategies/transform/ |
D | matrix_transformers.hpp | 64 set<Dimension>(p, boost::numeric_cast<coord_t>(qvm::A<Dimension>(v))); in apply() 200 …set<0>(p2, boost::numeric_cast<ct2>(c1 * qvm::A<0,0>(this->m_matrix) + c2 * qvm::A<0,1>(this->m_ma… in apply() 201 …set<1>(p2, boost::numeric_cast<ct2>(c1 * qvm::A<1,0>(this->m_matrix) + c2 * qvm::A<1,1>(this->m_ma… in apply() 244 set<0>(p2, boost::numeric_cast<ct2>( in apply() 246 set<1>(p2, boost::numeric_cast<ct2>( in apply() 293 set<0>(p2, boost::numeric_cast<ct2>( in apply() 295 set<1>(p2, boost::numeric_cast<ct2>( in apply() 297 set<2>(p2, boost::numeric_cast<ct2>( in apply()
|
/third_party/boost/libs/python/src/converter/ |
D | builtin_converters.cpp | 136 return numeric_cast<T>(x); in extract() 148 return numeric_cast<T>(x); in extract() 180 return numeric_cast<T>(x); in extract() 214 return numeric_cast<T>(result); in extract() 227 return numeric_cast<T>(result); in extract() 293 return numeric_cast<unsigned BOOST_PYTHON_LONG_LONG>(PyInt_AS_LONG(intermediate)); in extract()
|
/third_party/boost/boost/geometry/strategies/ |
D | normalize.hpp | 59 geometry::set<Dimension>(point_out, boost::numeric_cast in apply() 92 geometry::set<0>(point_out, boost::numeric_cast in apply() 113 geometry::set<1>(point_out, boost::numeric_cast in apply()
|
/third_party/boost/boost/geometry/strategies/spherical/ |
D | envelope_segment.hpp | 300 >(helper_mbr, boost::numeric_cast<box_coordinate_type>(lon1)); in create_box() 305 >(helper_mbr, boost::numeric_cast<box_coordinate_type>(lat1)); in create_box() 310 >(helper_mbr, boost::numeric_cast<box_coordinate_type>(lon2)); in create_box() 315 >(helper_mbr, boost::numeric_cast<box_coordinate_type>(lat2)); in create_box()
|
/third_party/boost/boost/geometry/policies/robustness/ |
D | get_rescale_policy.hpp | 71 num_type const diff = boost::numeric_cast<num_type>(detail::get_max_size(box)); in scale_box_to_integer_range() 82 factor = boost::numeric_cast<num_type>( in scale_box_to_integer_range() 83 boost::numeric_cast<boost::long_long_type>(half + range / diff)); in scale_box_to_integer_range() 91 = boost::numeric_cast<boost::long_long_type>(-range / two); in scale_box_to_integer_range()
|
/third_party/boost/libs/format/example/ |
D | sample_userType.cpp | 122 os << string(boost::numeric_cast<std::string::size_type>(n), ' '); in operator <<() 126 os << string(boost::numeric_cast<std::string::size_type>(n), ' '); in operator <<()
|
/third_party/boost/boost/ratio/mpl/ |
D | numeric_cast.hpp | 20 template<> struct numeric_cast< integral_c_tag,rational_c_tag > struct
|