当前位置: 首页>>代码示例>>C++>>正文


C++ default_ops::eval_modulus方法代码示例

本文整理汇总了C++中default_ops::eval_modulus方法的典型用法代码示例。如果您正苦于以下问题:C++ default_ops::eval_modulus方法的具体用法?C++ default_ops::eval_modulus怎么用?C++ default_ops::eval_modulus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在default_ops的用法示例。


在下文中一共展示了default_ops::eval_modulus方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: BOOST_MP_MOVE

BOOST_MP_FORCEINLINE typename enable_if_c<number_category<B>::value == number_kind_integer, number<B, et_off> >::type operator % (const number<B, et_off>& a, const number<B, et_off>& b)
{
   number<B, et_off> result;
   using default_ops::eval_modulus;
   eval_modulus(result.backend(), a.backend(), b.backend());
   return BOOST_MP_MOVE(result);
}
开发者ID:AsherBond,项目名称:PDAL,代码行数:7,代码来源:no_et_ops.hpp

示例2:

BOOST_MP_FORCEINLINE typename enable_if_c<is_compatible_arithmetic_type<V, number<B, et_off> >::value && (number_category<B>::value == number_kind_integer), number<B, et_off> >::type
   operator % (number<B, et_off>&& a, const V& b)
{
   using default_ops::eval_modulus;
   eval_modulus(a.backend(), number<B, et_off>::canonical_value(b));
   return static_cast<number<B, et_off>&&>(a);
}
开发者ID:AsherBond,项目名称:PDAL,代码行数:7,代码来源:no_et_ops.hpp

示例3:

BOOST_MP_FORCEINLINE typename enable_if_c<number_category<B>::value == number_kind_integer, number<B, et_off> >::type operator % (number<B, et_off>&& a, const number<B, et_off>& b)
{
   using default_ops::eval_modulus;
   detail::scoped_default_precision<multiprecision::number<B, et_off> > precision_guard(a, b);
   eval_modulus(a.backend(), b.backend());
   return static_cast<number<B, et_off>&&>(a);
}
开发者ID:betajippity,项目名称:Nuparu,代码行数:7,代码来源:no_et_ops.hpp

示例4: BOOST_MP_MOVE

BOOST_MP_FORCEINLINE number<B, et_off> operator % (const number<B, et_off>& a, const number<B, et_off>& b)
{
   number<B, et_off> result;
   using default_ops::eval_modulus;
   eval_modulus(result.backend(), a.backend(), b.backend());
   return BOOST_MP_MOVE(result);
}
开发者ID:AsKorysti,项目名称:anura,代码行数:7,代码来源:no_et_ops.hpp

示例5: precision_guard

BOOST_MP_FORCEINLINE typename enable_if_c<is_compatible_arithmetic_type<V, number<B, et_off> >::value && (number_category<B>::value == number_kind_integer), number<B, et_off> >::type
   operator % (const V& a, const number<B, et_off>& b)
{
   detail::scoped_default_precision<multiprecision::number<B, et_off> > precision_guard(b);
   number<B, et_off> result;
   using default_ops::eval_modulus;
   eval_modulus(result.backend(), number<B, et_off>::canonical_value(a), b.backend());
   return result;
}
开发者ID:betajippity,项目名称:Nuparu,代码行数:9,代码来源:no_et_ops.hpp

示例6: eval_qr

inline void eval_qr(const Backend& x, const Backend& y, Backend& q, Backend& r)
{
   eval_divide(q, x, y);
   eval_modulus(r, x, y);
}
开发者ID:LocutusOfBorg,项目名称:poedit,代码行数:5,代码来源:integer_ops.hpp

示例7:

BOOST_MP_FORCEINLINE number<B, et_off> operator % (number<B, et_off>&& a, const number<B, et_off>& b)
{
   using default_ops::eval_modulus;
   eval_modulus(a.backend(), b.backend());
   return static_cast<number<B, et_off>&&>(a);
}
开发者ID:AsKorysti,项目名称:anura,代码行数:6,代码来源:no_et_ops.hpp


注:本文中的default_ops::eval_modulus方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。