std::tr2::bool_set(3cxx)

Hey bestie πŸ’– welcome to the 3cxx manual page for std::tr2::bool_set β€” yes, the multi-valued logic cutie is here to slay. I’m obsessed, honestly.

✨ NAME ✨

std::tr2::bool_set β€” that’s the name, that’s the vibe, no cap β€” periodt.

🌸 SYNOPSIS 🌸

First things first, bestie, include the header:

#include <bool_set>

πŸ’– Public Member Functions πŸ’–

  • constexpr bool_set () β€” default constructor, lowkey iconic.
  • constexpr bool_set (bool __t) β€” constructor from bool.
  • bool contains (bool_set __b) const β€” the original gives no extra description here, just the signature. Keep it moving. πŸ’…
  • bool equals (bool_set __b) const β€” returns true if states are equal.
  • bool is_emptyset () const β€” returns true if this is empty.
  • bool is_indeterminate () const β€” returns true if this is indeterminate.
  • bool is_singleton () const β€” returns true if this is false or true (normal boolean).
  • operator bool () const β€” conversion to bool.

πŸ¦‹ Static Public Member Functions πŸ¦‹

  • static bool_set emptyset () β€” vibe check: signature only in the original, fr fr.
  • static bool_set indeterminate () β€” same deal: signature only in the original.

πŸŽ€ Friends πŸŽ€

ngl, all the friend operators, copied exactly:

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 is the whole concept, okay? It’s literally giving multi-valued logic main character energy, iykyk. See N2136, Bool_set: multi-valued logic by HervΓ© BrΓΆnnimann, Guillaume Melquiond, Sylvain Pion.

⚠️ The implicit conversion to bool is highkey slippery! The original says: β€œ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.

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

  • constexpr std::tr2::bool_set::bool_set () [inline], [constexpr] β€” default constructor.
  • constexpr 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] β€” returns true if states are equal.
  • bool std::tr2::bool_set::is_emptyset () const [inline] β€” returns true if this is empty.
  • bool std::tr2::bool_set::is_indeterminate () const [inline] β€” returns true if this is indeterminate.
  • bool std::tr2::bool_set::is_singleton () const [inline] β€” returns 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. The way it ate and left no crumbs, fr fr. πŸ’…


Sign-off time: this cutie came from libstdc++, manual std::tr2::bool_set(3cxx). The footer has no date, bestie β€” just source/version energy and a perfect little bow. πŸŽ€

πŸ“¦ where this page comes from