std::shuffl...ne::discard(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… std::shuffl...ne::discard(3) πŸ’…

okay so this is literally the std::shuffl...ne::discard(3) page from the C++ Standard Libary manual β€” yes bestie, β€œLibary” is spelled like that up top, and we respect the typo 🫢. It’s giving β€œadvance the state and move on” energy.

🌸 NAME 🌸

std::shuffle_order_engine::discard - std::shuffle_order_engine::discard

✨ Synopsis ✨

void discard( unsigned long long z );  (since C++11)

So bestie, this one advances the internal state by z times. It’s equivalent to calling operator() z times and discarding the result. Important vibe check: the state of the underlying engine may be advanced by more than z times. Like, do not assume exactly z, okay? That’s literally the rule.

πŸŽ€ Parameters πŸŽ€

  • z β€” integer value specifying the number of times to advance the state by

πŸ¦‹ Return value πŸ¦‹

(none) β€” not a single thing comes back πŸ’€

πŸ’œ Exceptions πŸ’œ

Throws nothing. She’s unbothered, no exceptions, no drama ✨

πŸ”₯ See also πŸ”₯

  • operator() β€” advances the state of the underlying engine and returns the generated value (public member function) (C++11)

mwah πŸ’‹ source/version and date: http://cppreference.com Β· 2024.06.10 β€” this is the std::shuffl...ne::discard(3) page, and we’re out πŸ¦‹πŸ’–

πŸ“¦ where this page comes from