__gnu_cxx:...alue_limit(3)
β¨ NAME β¨
__gnu_cxx::throw_value_limit β a type that throws based on a limit condition. That's literally the whole vibe π
This one lives in the __gnu_cxx manual, btw β that's the Library Functions Manual, bestie, not just any old page π«Ά
πΈ SYNOPSIS πΈ
#include <throw_allocator.h>
okay so first thing, she inherits from __gnu_cxx::throw_value_base< limit_condition > π
π Public Types π
typedef throw_value_base< limit_condition > base_typeβ this is her base class, her origin story, her main character lineage πtypedef limit_condition condition_typeβ the condition type she rides with, no cap
π Public Member Functions π
throw_value_limit (const std::size_t __i)β constructor that takes astd::size_tnamed__iβ¨throw_value_limit (const throw_value_limit &__other)β copy constructor, taking anotherthrow_value_limitas__otherπ¦throw_value_limit (throw_value_limit &&)=defaultβ move constructor, and it's=default(the compiler handles it, we don't have to, slay) πthrow_value_base & operator++ ()β pre-increment, and she hands you back a reference tothrow_value_baseπthrow_value_limit & operator= (const throw_value_limit &__other)β copy assignment from anotherthrow_value_limitcalled__otherπthrow_value_limit & operator= (throw_value_limit &&)=defaultβ move assignment, also=default, iconic behavior π
π§ Static Public Member Functions π§
static size_t & count ()β returns a reference to asize_t, and it's static so you don't need an instance, periodt β¨static size_t & limit ()β same energy, returns a reference to asize_t, also static πstatic void set_limit (const size_t __l)β static, takes aconst size_tnamed__l, returns nothing, sets the limit, that's it π«Άstatic void throw_conditionally ()β static, no args, no return, and it throws conditionally β the name is not playing around π
β Public Attributes β
std::size_t _M_iβ a publicstd::size_tattribute named_M_i. Yes bestie, it's just out there, in the open, for everyone πΈ
π Detailed Description π
A type that throws via a limit condition. That's the whole thing β the name literally tells you what it does and I respect the transparency π
ngl the whole point of this family of types is to throw on purpose when a condition hits, so if you're using it, expect the throw. It's a feature, not a bug π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So like, no human wrote this by hand β the robot did it and honestly it ate π€β¨
and that's a wrap bestie!! this page came to you straight out of the libstdc++ source, auto-generated by Doxygen for the __gnu_cxx manual, so go forth and throw conditionally π
ππ
π¦ 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