Przejdź do głównej zawartości

C++ named requirements: SeedSequence (od C++11)

A SeedSequence is an object that produces unsigned integer values i in the range 0 ≤ i < 232 based on a consumed range of integer data.

Requirements

ExpressionTypeNotesComplexity
S::result_typeTUnsigned integer of at least 32 bitscompile-time
S()Creates a seed sequence with the same initial state as other default-constructed seed sequences of type Sconstant
S(ib,ie)Creates a seed sequence with internal state depending on some or all supplied input bits by [ib,ie)O(ie-ib)
S(il)The same as S(il.begin(), il.end())
q.generate(rb,re)voidFills [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_tThe amount of 32-bit integers copied by param.constant
r.param(ob)voidCopies 32-bit values to ob that would reproduce the current state of the object if passed to a constructor of S.O(r.size())

C++ named requirements: SeedSequence (od C++11)

A SeedSequence is an object that produces unsigned integer values i in the range 0 ≤ i < 232 based on a consumed range of integer data.

Requirements

ExpressionTypeNotesComplexity
S::result_typeTUnsigned integer of at least 32 bitscompile-time
S()Creates a seed sequence with the same initial state as other default-constructed seed sequences of type Sconstant
S(ib,ie)Creates a seed sequence with internal state depending on some or all supplied input bits by [ib,ie)O(ie-ib)
S(il)The same as S(il.begin(), il.end())
q.generate(rb,re)voidFills [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_tThe amount of 32-bit integers copied by param.constant
r.param(ob)voidCopies 32-bit values to ob that would reproduce the current state of the object if passed to a constructor of S.O(r.size())