std::normal...ution::reset(3)
π NAME π
okay so bestie, welcome to std::normal...ution::reset(3) β straight out of the C++ Standard Libary manual (yes, spelled exactly like that on the page, iykyk π). The name line is literally:
std::normal_distribution::reset
Thatβs the whole name. No extra lore. Iconic behavior honestly.
β¨ Synopsis β¨
void reset(); (since C++11)
This cutie has been around since C++11, takes zero arguments, and does exactly one little job: it resets the internal state of the distribution object. After a call to this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator(). Thatβs the whole point β previous operator() calls donβt get to haunt the next one π
.
πΈ Parameters πΈ
(none)
literally no parameters. nothing to pass. no stress. π«Ά
π¦ Return value π¦
(none)
it returns nothing. thatβs the vibe. no value, no drama.
β Complexity β
Constant.
constant complexity, periodt. no hidden extra work energy here π₯.
source/version: http://cppreference.com β dated 2024.06.10 β and the footer is also repping std::normal...ution::reset(3). bye bestie, go reset your internal state and slay πβ¨π
π¦ 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