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 frombool.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β returnstrueif states are equal.bool is_emptyset () constβ returnstrueif this is empty.bool is_indeterminate () constβ returnstrueif this is indeterminate.bool is_singleton () constβ returnstrueif this isfalseortrue(normal boolean).operator bool () constβ conversion tobool.
π¦ 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 toboolis highkey slippery! The original says: βI may use the new explicit conversion.β This has been specialized in the language so that in contexts requiring abool, 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 frombool.
π Member Function Documentation π
bool std::tr2::bool_set::equals (bool_set __b) const [inline]β returnstrueif states are equal.bool std::tr2::bool_set::is_emptyset () const [inline]β returnstrueif this is empty.bool std::tr2::bool_set::is_indeterminate () const [inline]β returnstrueif this is indeterminate.bool std::tr2::bool_set::is_singleton () const [inline]β returnstrueif this isfalseortrue(normal boolean). Referenced byoperator bool().std::tr2::bool_set::operator bool () const [inline]β conversion tobool. Referencesis_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
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms