__GNU_CXX::THROW_VALUE_RANDOM(3)
π __gnu_cxx::throw_value_random β NAME π
okay bestie, so this is a libstdc++ manual page (a Library Functions Manual one, no less) for __gnu_cxx::throw_value_random β a type that throws via a random condition. yes really. it just. decides. π²β¨
π¦ SYNOPSIS π¦
#include <throw_allocator.h>
and also, plot twist:
Inherits __gnu_cxx::throw_value_base< random_condition >.
so it's inheriting from __gnu_cxx::throw_value_base< random_condition > β it's giving nepo baby but make it templates π
πΈ Public Types πΈ
typedef throw_value_base< random_condition > base_typeβ the base type, aka where all the inherited energy comes from π«Άtypedef random_condition condition_typeβ the condition type, literally namedrandom_conditionbc the randomness is the whole personality π
β¨ Public Member Functions β¨
throw_value_random (const std::size_t __i)β constructor that takes astd::size_t __iπthrow_value_random (const throw_value_random &__other)β copy constructor, takes aconst throw_value_random &__otherπthrow_value_random (throw_value_random &&)=defaultβ move constructor, and it's=default, so the compiler handles it, slay πthrow_value_base & operator++ ()β the increment operator, returns athrow_value_base &πthrow_value_random & operator= (const throw_value_random &__other)β copy assignment, takes aconst throw_value_random &__other, returns athrow_value_random &πΈthrow_value_random & operator= (throw_value_random &&)=defaultβ move assignment, also=default, returns athrow_value_random &βvoid seed (unsigned long __s)β seeds it with anunsigned long __sπ± (yes the param is literally called__s, iconic)
π Static Public Member Functions π
static void set_probability (double __p)β sets the probability, takes adouble __pπ―static void throw_conditionally ()β throws... conditionally. no args, no notes, just vibes π
π Public Attributes π
std::size_t _M_iβ the one and only public attribute, astd::size_tnamed_M_iπ§
π Detailed Description π
Type throwing via random condition.
like, that's it. that's the whole description. it throws via a random condition. main character energy fr fr π₯
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. not a human, just a robot doing its little documentation thing π€β¨
ngl bestie, this page came from the libstdc++ crew, and the header up top said __gnu_cxx:...alue_random(3) β yeah the title got a lil truncated in the man page, we love a dramatic ellipsis π
that's just how it's printed, no cap. mwah, go read some source code π«ΆπΈ
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms