std::tr2::bool_set(3)
π std::tr2::bool_set β Library Functions Manual π
okay bestie, sit down, hydrate, because today we're learning about std::tr2::bool_set, and honestly? it's giving philosopher queen. it's a boolean that woke up and chose chaos β she can be true, she can be false, she can be empty, she can be indeterminate, she's a whole multi-valued icon. πβ¨
this page lives in section 3 of the library functions manual, iykyk. let's get into it. π
β¨ NAME β¨
std::tr2::bool_set β the multi-valued logic girlie herself π
πΈ SYNOPSIS πΈ
#include <bool_set>
π¦ Public Member Functions
constexpr bool_set ()β default constructor. she just exists, no thoughts, head empty (literally, that's a whole state).constexpr bool_set (bool __t)β constructor frombool. feed her atrueor afalseand she'll take it.bool contains (bool_set __b) constβ no blurb attached to this one, she's mysterious, we respect it πbool equals (bool_set __b) constβ returntrueif states are equal. twin check. πbool is_emptyset () constβ returntrueif this is empty.bool is_indeterminate () constβ returntrueif this is indeterminate. the "idk her" state fr.bool is_singleton () constβ returntrueif this isfalseortrue(normal boolean). so like, the basic b*tch state, but affectionately.operator bool () constβ conversion tobool.
π Static Public Member Functions
static bool_set emptyset ()static bool_set indeterminate ()
π Friends
bool_set operator! (bool_set __b)bool_set operator& (bool_set __s, bool_set __t)template<typename CharT, typename Traits> std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &__out, bool_set __b)bool_set operator== (bool_set __s, bool_set __t)template<typename CharT, typename Traits> std::basic_istream< CharT, Traits > & operator>> (std::basic_istream< CharT, Traits > &__in, bool_set &__b)bool_set operator^ (bool_set __s, bool_set __t)bool_set operator| (bool_set __s, bool_set __t)
π Detailed Description π
bool_set
See N2136, Bool_set: multi-valued logic by HervΓ© BrΓΆnnimann, Guillaume Melquiond, Sylvain Pion. πβ¨
the implicit conversion toboolis slippery! π I may use the new explicit conversion. This has been specialized in the language so that in contexts requiring aboolthe conversion happens implicitly. Thus most objections should be eliminated.
so basically: she can slide into a bool when the context is begging for one, and that's on purpose, no cap. π«Ά
π Constructor & Destructor Documentation π
std::tr2::bool_set::bool_set () [inline], [constexpr]
Default constructor.
Referenced by equals().
std::tr2::bool_set::bool_set (bool __t) [inline], [constexpr]
Constructor from bool.
π Member Function Documentation π
bool std::tr2::bool_set::equals (bool_set __b) const [inline]
Return true if states are equal.
References bool_set().
bool std::tr2::bool_set::is_emptyset () const [inline]
Return true if this is empty.
bool std::tr2::bool_set::is_indeterminate () const [inline]
Return true if this is indeterminate.
bool std::tr2::bool_set::is_singleton () const [inline]
Return true if this is false or true (normal boolean).
Referenced by operator bool().
std::tr2::bool_set::operator bool () const [inline]
Conversion to bool.
References is_singleton().
πΈ Author πΈ
Generated automatically by Doxygen for libstdc++ from the source code. (yes she was born automated, main character energy from day one, we love a self-made queen π)
and that's the whole page bestie!! go forth and be multi-valued, the vibe check has been passed, periodt. πβ¨
β with love, from the libstdc++ era of the library functions manual (section 3) π¦π
π¦ 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 43: libstdc++-docs 15.2.1-2.fc43 Β· 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 43: libstdc++-docs 15.3.1-1.fc43 Β· 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.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