Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The latest version of this topic can be found at discard_block_engine Class.
Generates a random sequence by discarding values returned by its base engine.
Syntax
template <class Engine, size_t P, size_t R>
class discard_block_engine;
Parameters
Engine
The base engine type.
P
Block size. The number of values in each block.
R
Used block. The number of values in each block that are used. The rest are discarded ( P - R). Precondition: 0 < R ≤ P
Members
discard_block_engine::discard_block_engine |
discard_block_engine::base |
discard_block_engine::discard |
discard_block_engine::operator() |
discard_block_engine::base_type |
discard_block_engine::seed |
For more information about engine members, see <random>.
Remarks
This template class describes an engine adaptor that produces values by discarding some of the values returned by its base engine.
Requirements
Header: <random>
Namespace: std