std::indepe...ine::discard(3)
std::independent_bits_engine::discard π¦
okay bestie, welcome to the std::independent_bits_engine::discard page from the C++ Standard Libary manual β yes, that's the manual name folded in right here at the top, and we are so ready to talk about advancing state like it's nobody's business π
.
NAME π
std::independent_bits_engine::discard-std::independent_bits_engine::discard
SYNOPSIS β¨
void discard( unsigned long long z ); (since C++11)
okay so here's the whole vibe: it advances the internal state by z times. that's it, that's the gig π«Ά. it's equivalent to calling operator() z times and discarding the result. and listen: the state of the underlying engine may be advanced by more than z times β so don't assume it's exactly z little steps under the hood, bestie π.
PARAMETERS π
zβ integer value specifying the number of times to advance the state by
RETURN VALUE π
(none) β literally nothing comes back. it does the advance thing and bounces β¨.
EXCEPTIONS π
Throws nothing. zero exceptions, no drama, not even a tiny throw π.
SEE ALSO π
operator()β advances the state of the underlying engine and returns the generated value (C++11) (public member function)
source: http://cppreference.com, date/version: 2024.06.10 β mwah, go forth and discard correctly, bestie ππ
π¦ 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