std::discar...ne::discard(3)
π
std::discard_block_engine::discard π
Okay bestie, welcome to the std::discar...ne::discard(3) page from the C++ Standard Libary β manual-name check, folded in right here at the top like a little name tag. The function serving main-character energy is std::discard_block_engine::discard, and yes, the NAME line is exactly std::discard_block_engine::discard - std::discard_block_engine::discard. We love a self-referential icon.
π NAME π
std::discard_block_engine::discard - std::discard_block_engine::discard
π¦ Synopsis π¦
void discard( unsigned long long z ); (since C++11)
It advances the internal state by z times. Equivalent to calling operator() z times and discarding the result. The state of the underlying engine may be advanced by more than z times. So yeah, it's giving "skip ahead," but the underlying engine might take a few extra steps, no cap.
πΈ Parameters πΈ
zβ integer value specifying the number of times to advance the state by
π Return value π
(none) β she returns absolutely nothing. Void behavior, zero results to catch.
β¨ Exceptions β¨
Throws nothing. Not a single exception. Calm, quiet, unbothered.
π See also π
operator()β advances the state of the underlying engine and returns the generated value (C++11) (public member function)
Big kiss to http://cppreference.com, source/version and date 2024.06.10, for the lore β and that's the whole page, periodt. π«Άπ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms