YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ystdex::modular_arithmetic< _type > 模板结构体 参考

模算术特性:取得不超过模值的最大值。 更多...

#include <cstdint.hpp>

ystdex::modular_arithmetic< _type > 的协作图:

静态 Public 属性

static const _type value
 

详细描述

template<typename _type>
struct ystdex::modular_arithmetic< _type >

模算术特性:取得不超过模值的最大值。

注解
不保证值是整数,因此不从 std::integral_constant 派生。
模值 0 表示模为平凡值 1 或不支持模算术。
正确性由用户保证。一般应至少保证 + 和 * 以及相关赋值操作满足模算术语义。
自从
build 440

在文件 cstdint.hpp146 行定义.

类成员变量说明

template<typename _type>
const _type ystdex::modular_arithmetic< _type >::value
static
初始值:
= is_unsigned<_type>::value
? std::numeric_limits<_type>::max() : _type(0)

在文件 cstdint.hpp148 行定义.


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