MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
big_sub< High1, Low1, High2, Low2 > 模板结构体 参考

无符号大整数减法 更多...

#include <static_numeric.hpp>

静态 Public 属性

static constexpr uintmax_t result_low = Low1 - Low2
 减法结果的低位
static constexpr uintmax_t result_high = (High1 - High2 - (Low1 < Low2))
 减法结果的高位,考虑借位

详细描述

template<uintmax_t High1, uintmax_t Low1, uintmax_t High2, uintmax_t Low2>
struct big_sub< High1, Low1, High2, Low2 >

无符号大整数减法

模板参数
High1被减数的高位
Low1被减数的低位
High2减数的高位
Low2减数的低位

计算两个大整数的差,要求被减数不小于减数。

在文件 static_numeric.hpp130 行定义.


该结构体的文档由以下文件生成: