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

安全的编译期乘法,检查溢出 更多...

#include <static_numeric.hpp>

详细描述

template<intmax_t A, intmax_t B>
struct safe_multiply< A, B >

安全的编译期乘法,检查溢出

模板参数
A第一个乘数
B第二个乘数

在编译期检查乘法是否会导致溢出,如果会溢出则触发静态断言。

在文件 static_numeric.hpp72 行定义.


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