__GNU_CXX::THROW_VALUE_RANDOM(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 7 versions
, in arch rolling, fedora 44

πŸ’– __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 named random_condition bc the randomness is the whole personality 🌈

✨ Public Member Functions ✨

  • throw_value_random (const std::size_t __i) β€” constructor that takes a std::size_t __i πŸŽ€
  • throw_value_random (const throw_value_random &__other) β€” copy constructor, takes a const 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 a throw_value_base & πŸ‘‘
  • throw_value_random & operator= (const throw_value_random &__other) β€” copy assignment, takes a const throw_value_random &__other, returns a throw_value_random & 🌸
  • throw_value_random & operator= (throw_value_random &&)=default β€” move assignment, also =default, returns a throw_value_random & ⭐
  • void seed (unsigned long __s) β€” seeds it with an unsigned long __s 🌱 (yes the param is literally called __s, iconic)

πŸ’œ Static Public Member Functions πŸ’œ

  • static void set_probability (double __p) β€” sets the probability, takes a double __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, a std::size_t named _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