libstdc++
|
Produces random numbers from some base engine by discarding blocks of data.
0 <= __r
<= __p
typedef _RandomNumberEngine::result_type std::discard_block_engine< _RandomNumberEngine, __p, __r >::result_type |
std::discard_block_engine< _RandomNumberEngine, __p, __r >::discard_block_engine | ( | ) | [inline] |
std::discard_block_engine< _RandomNumberEngine, __p, __r >::discard_block_engine | ( | const _RandomNumberEngine & | __rng | ) | [inline, explicit] |
std::discard_block_engine< _RandomNumberEngine, __p, __r >::discard_block_engine | ( | _RandomNumberEngine && | __rng | ) | [inline, explicit] |
std::discard_block_engine< _RandomNumberEngine, __p, __r >::discard_block_engine | ( | result_type | __s | ) | [inline, explicit] |
std::discard_block_engine< _RandomNumberEngine, __p, __r >::discard_block_engine | ( | _Sseq & | __q | ) | [inline, explicit] |
const _RandomNumberEngine& std::discard_block_engine< _RandomNumberEngine, __p, __r >::base | ( | ) | const [inline] |
void std::discard_block_engine< _RandomNumberEngine, __p, __r >::discard | ( | unsigned long long | __z | ) | [inline] |
static constexpr result_type std::discard_block_engine< _RandomNumberEngine, __p, __r >::max | ( | ) | [inline, static] |
static constexpr result_type std::discard_block_engine< _RandomNumberEngine, __p, __r >::min | ( | ) | [inline, static] |
discard_block_engine< _RandomNumberEngine, __p, __r >::result_type std::discard_block_engine< _RandomNumberEngine, __p, __r >::operator() | ( | ) |
Gets the next value in the generated random number sequence.
Definition at line 674 of file random.tcc.
void std::discard_block_engine< _RandomNumberEngine, __p, __r >::seed | ( | ) | [inline] |
void std::discard_block_engine< _RandomNumberEngine, __p, __r >::seed | ( | result_type | __s | ) | [inline] |
void std::discard_block_engine< _RandomNumberEngine, __p, __r >::seed | ( | _Sseq & | __q | ) | [inline] |
std::basic_ostream<_CharT, _Traits>& operator<< | ( | std::basic_ostream< _CharT, _Traits > & | __os, |
const std::discard_block_engine< _RandomNumberEngine1, __p1, __r1 > & | __x | ||
) | [friend] |
Inserts the current state of a discard_block_engine random number generator engine __x
into the output stream __os
.
__os | An output stream. |
__x | A discard_block_engine random number generator engine. |
__x
inserted or in an error state. bool operator== | ( | const discard_block_engine< _RandomNumberEngine, __p, __r > & | __lhs, |
const discard_block_engine< _RandomNumberEngine, __p, __r > & | __rhs | ||
) | [friend] |
Compares two discard_block_engine random number generator objects of the same type for equality.
__lhs | A discard_block_engine random number generator object. |
__rhs | Another discard_block_engine random number generator object. |
std::basic_istream<_CharT, _Traits>& operator>> | ( | std::basic_istream< _CharT, _Traits > & | __is, |
std::discard_block_engine< _RandomNumberEngine1, __p1, __r1 > & | __x | ||
) | [friend] |
Extracts the current state of a % subtract_with_carry_engine random number generator engine __x
from the input stream __is
.
__is | An input stream. |
__x | A discard_block_engine random number generator engine. |
__x
extracted or in an error state.