std::tr2::bool_set(3)

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

πŸ’– 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 from bool. feed her a true or a false and 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 β€” return true if states are equal. twin check. πŸ’ž
  • bool is_emptyset () const β€” return true if this is empty.
  • bool is_indeterminate () const β€” return true if this is indeterminate. the "idk her" state fr.
  • bool is_singleton () const β€” return true if this is false or true (normal boolean). so like, the basic b*tch state, but affectionately.
  • operator bool () const β€” conversion to bool.

🌟 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 to bool is slippery! 😭 I may use the new explicit conversion. This has been specialized in the language so that in contexts requiring a bool the 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