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

SeedSequence

seed sequence是一个在0≤i<232范围内产生无符号整数值i的对象。

基于消耗的整数数据范围。

所需

  • S是种子序列。
  • qSr的潜在常量对象S...
  • Tresult_type...
  • ib,,,ieInputIterator斯带着value_type至少32位的无符号整数值。
  • ilstd::initializer_list<T>...
  • rb,,,re是可变RandomAccessIterator斯带着value_type至少32位的无符号整数值。
  • obOutputIterator...

Expression

Type

Notes

Complexity

S::result_type

T

Unsigned integer of at least 32 bits

compile-time

S()

?

Creates a seed sequence with the same default values as other objects of type S

constant

S(ib,ie)

?

Creates a seed sequence based on the supplied input bits by [ib,ie)

O(ie-ib)

S(il)

?

The same as S(il.begin(), il.end())

?

q.generate(rb,re)

void

Fills [rb,re) with 32-bit quantities depending on the initial supplied values and potential previous calls to generate. If rb == re, it does nothing.

O(re-rb)

r.size()

size_t

The amount of 32-bit integers copied by param.

constant

r.param(ob)

void

Copies 32-bit values to ob that would reproduce the current state of the object if passed to a constructor of S.

O(r.size())

另见

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

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com