首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::subtract_with_carry_engine

Defined in header <random>

?

?

template< class UIntType, size_t w, size_t s, size_t r > class subtract_with_carry_engine;

?

(since C++11)

subtract_with_carry_engine是一个随机数引擎,它使用带进位减法算法。

以下类型定义了具有两个常用参数集的随机数引擎:

在标头中定义<random>

*。

类型定义

粗大麻24[医]基本性病::减去[医]带着[医]携带[医]引擎<std::uint[医]扣件32[医]t,24,10,24>

粗关节48[医]基本性病::减去[医]带着[医]携带[医]引擎<std::uint[医]快64[医]t,48,5,12>

成员类型

Member type

Definition

result_type

The integral type generated by the engine. Results are undefined if this is not an unsigned integral type.

成员函数

建设与播种

*。

%28构造函数%29构造引擎%28公共成员函数%29

种子设置引擎%28公共成员函数%29的当前状态。

世代

运算符%28%29提升引擎%27s状态并返回生成值%28公共成员函数%29

丢弃将引擎%27s状态提升指定数量%28公共成员函数%29

特征

敏静态获取输出范围%28公共静态成员函数%29中的最小可能值。

马克斯静态获取输出范围%28公共静态成员函数%29中的最大可能值。

非会员职能

operator==operator!=

compares the internal states of two pseudo-random number engines (function template)

operator<<operator>>

performs stream input and output on pseudo-random number engine (function template)

成员对象

constexpr size_t word_size static

(public static member constant)

constexpr size_t short_lag static

(public static member constant)

constexpr size_t long_lag static

(public static member constant)

constexpr UIntType default_seed static

(public static member constant)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com