Compartilhar via


discard_block_engine::discard_block_engine

Constructs the engine.

discard_block_engine();
explicit discard_block_engine(const base_type& eng);
explicit discard_block_engine(result_type x0);
explicit discard_block_engine(seed_seq& seq);

Parameters

  • eng
    An engine object.

  • x0
    The seed value.

  • seq
    The object of type seed_seq that supplies the randomized seed.

Remarks

The first constructor constructs a discard_block_engine object with a default-initialized engine.

The second contructor constructs a discard_block_engine object with a copy of an engine object.

The third constructor constucts a discard_block_engine object with its engine initialized by stored_engine(x0).

The fourth constructor constucts a discard_block_engine object with its engine initialized by stored_engine(seq).

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

discard_block_engine Class

Other Resources

<random> Members