C++ 概念: SeedSequence
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
一个
消耗的范围内的整数数据的基础上.
seed sequence是一个对象,它产生的无符号整数的值i的范围内0 ≤ i < 232消耗的范围内的整数数据的基础上.
原文:
A
based on a consumed range of integer data.
seed sequence is an object that produces unsigned integer values i in the range 0 ≤ i < 232based on a consumed range of integer data.
[编辑] 要求
S被SeedSequence.q一个目的是S和r是一个潜在的常量对象S.原文:qis an object ofSandris a potentially constant object ofS.Tis theresult_type.ilis an std::initializer_list<T>.rb,re是修改RandomAccessIterators,至少32位的无符号整数的值与value_type.原文:rb,reare modifiableRandomAccessIterators with avalue_typeof unsigned integer values of at least 32 bits.obis anOutputIterator.
| 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 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