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

取按指定宽度的整数类型。 更多...

#include <cstdint.hpp>

Public 类型

using fast_type = typename make_width_int<(_vWidth<=8U?8U:(_vWidth<=16U?16U:(_vWidth<=32U?32U:64U)))>::fast_type
 
using unsigned_fast_type = typename make_width_int<(_vWidth<=8U?8U:(_vWidth<=16U?16U:(_vWidth<=32U?32U:64U)))>::unsigned_fast_type
 
using least_type = typename make_width_int<(_vWidth<=8U?8U:(_vWidth<=16U?16U:(_vWidth<=32U?32U:64U)))>::least_type
 
using unsigned_least_type = typename make_width_int<(_vWidth<=8U?8U:(_vWidth<=16U?16U:(_vWidth<=32U?32U:64U)))>::unsigned_least_type
 

详细描述

template<size_t _vWidth>
struct ystdex::make_width_int< _vWidth >

取按指定宽度的整数类型。

自从
build 439
待办事项:
允许不定义可选的具体整数类型。

在文件 cstdint.hpp75 行定义.

成员类型定义说明

template<size_t _vWidth>
using ystdex::make_width_int< _vWidth >::fast_type = typename make_width_int<(_vWidth <= 8U ? 8U : (_vWidth <= 16U ? 16U : (_vWidth <= 32U ? 32U : 64U)))>::fast_type

在文件 cstdint.hpp80 行定义.

template<size_t _vWidth>
using ystdex::make_width_int< _vWidth >::least_type = typename make_width_int<(_vWidth <= 8U ? 8U : (_vWidth <= 16U ? 16U : (_vWidth <= 32U ? 32U : 64U)))>::least_type

在文件 cstdint.hpp85 行定义.

template<size_t _vWidth>
using ystdex::make_width_int< _vWidth >::unsigned_fast_type = typename make_width_int<(_vWidth <= 8U ? 8U : (_vWidth <= 16U ? 16U : (_vWidth <= 32U ? 32U : 64U)))> ::unsigned_fast_type

在文件 cstdint.hpp83 行定义.

template<size_t _vWidth>
using ystdex::make_width_int< _vWidth >::unsigned_least_type = typename make_width_int<(_vWidth <= 8U ? 8U : (_vWidth <= 16U ? 16U : (_vWidth <= 32U ? 32U : 64U)))> ::unsigned_least_type

在文件 cstdint.hpp88 行定义.


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