__gnu_cxx::random_condition(3cxx)

πŸ’– NAME πŸ’–

okay so bestie, welcome to the 3cxx page for __gnu_cxx::random_condition β€” literally the base class for random probability control and throw. That's the whole name vibe, and yes it ate. πŸ’…


✨ SYNOPSIS ✨

#include <throw_allocator.h>

Inherits __gnu_cxx::condition_base. 🫢

Inherited by __gnu_cxx::throw_allocator_base< _Tp, random_condition >, and __gnu_cxx::throw_value_base< random_condition >. (Yes, _Tp stays exactly like that, no cap.)

πŸŽ€ Classes πŸŽ€

  • struct always_adjustor β€” Always enter the condition. iconic.
  • struct group_adjustor β€” Group condition. lowkey mysterious but that's the note.
  • struct never_adjustor β€” Never enter the condition. periodt.

🌸 Public Member Functions 🌸

  • void seed (unsigned long __s) β€” that's the documented signature, bestie. __s is literally unsigned long.

πŸ¦‹ Static Public Member Functions πŸ¦‹

  • static void set_probability (double __p) β€” exact signature, double __p and all.
  • static void throw_conditionally () β€” exact signature, empty parens, chef's kiss.

πŸ’œ Detailed Description πŸ’œ

Base class for random probability control and throw. That's the whole description, and honestly it's giving main character energy: short, powerful, knows what it is. ✨

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. No human author to stan here β€” Doxygen did that. 😭


okay final sign-off bestie: this page is from libstdc++, the manual/page tag is __gnu_cxx::random_condition(3cxx), and there's no separate date printed in that footer β€” so we're not inventing one. mwah πŸ’‹βœ¨