STD::__DEBUG::BITSET(3cxx)

okay bestie, welcome to the std::__debug::bitset< _Nb >(3cxx) manual page from libstdc++ πŸ’… this is the debug-flavored bitset, and yes the template mouthful is part of the charm.

πŸ’– NAME πŸ’–

  • std::__debug::bitset< _Nb > β€” Class std::bitset with additional safety/checking/debug instrumentation. it’s giving β€œbitset but make it safe” energy ✨

✨ SYNOPSIS ✨

Here’s the include, untouched and iconic:

#include <bitset>

Inherits bitset< _Nb >. 🫢

πŸŽ€ Public Types πŸŽ€

One public type, and it’s this little icon:

typedef _Base::reference reference

πŸ’… Public Member Functions πŸ’…

okay, deep breath β€” here is the entire member-function roster, every signature copied exactly, no edits, no cap:

constexpr bitset (const _Base &__x)
template<typename _CharT > constexpr bitset (const _CharT *__str,
    typename std::basic_string< _CharT >::size_type
    __n=std::basic_string< _CharT >::npos, _CharT __zero=_CharT('0'),
    _CharT __one=_CharT('1'))
template<class _CharT , class _Traits , class _Alloc > constexpr bitset
    (const std::basic_string< _CharT, _Traits, _Alloc > &__str, typename
    std::basic_string< _CharT, _Traits, _Alloc >::size_type __pos,
    typename std::basic_string< _CharT, _Traits, _Alloc >::size_type
    __n, _CharT __zero, _CharT __one=_CharT('1'))
template<typename _CharT , typename _Traits , typename _Alloc >
    constexpr bitset (const std::basic_string< _CharT, _Traits, _Alloc >
    &__str, typename std::basic_string< _CharT, _Traits, _Alloc
    >::size_type __pos=0, typename std::basic_string< _CharT, _Traits,
    _Alloc >::size_type __n=(std::basic_string< _CharT, _Traits, _Alloc
    >::npos))
constexpr bitset (unsigned long long __val) noexcept
constexpr const _Base & _M_base () const noexcept
constexpr _Base & _M_base () noexcept
constexpr bitset< _Nb > & flip () noexcept
constexpr bitset< _Nb > & flip (size_t __pos)
constexpr bitset< _Nb > & operator&= (const bitset< _Nb > &__rhs)
    noexcept
constexpr bitset< _Nb > operator<< (size_t __pos) const noexcept
constexpr bitset< _Nb > & operator<<= (size_t __pos) noexcept
constexpr bool operator== (const bitset< _Nb > &__rhs) const noexcept
constexpr bitset< _Nb > operator>> (size_t __pos) const noexcept
constexpr bitset< _Nb > & operator>>= (size_t __pos) noexcept
constexpr reference operator[] (size_t __pos)
constexpr bool operator[] (size_t __pos) const
constexpr bitset< _Nb > & operator^= (const bitset< _Nb > &__rhs)
    noexcept
constexpr bitset< _Nb > & operator|= (const bitset< _Nb > &__rhs)
    noexcept
constexpr bitset< _Nb > operator~ () const noexcept
constexpr bitset< _Nb > & reset () noexcept
constexpr bitset< _Nb > & reset (size_t __pos)
constexpr bitset< _Nb > & set () noexcept
constexpr bitset< _Nb > & set (size_t __pos, bool __val=true)
template<typename _CharT , typename _Traits , typename _Alloc >
    constexpr std::basic_string< _CharT, _Traits, _Alloc > to_string ()
    const
template<typename _CharT , typename _Traits > constexpr
    std::basic_string< _CharT, _Traits, std::allocator< _CharT > >
    to_string () const
template<typename _CharT > constexpr std::basic_string< _CharT,
    std::char_traits< _CharT >, std::allocator< _CharT > > to_string ()
    const
constexpr std::basic_string< char, std::char_traits< char >,
    std::allocator< char > > to_string () const
template<class _CharT , class _Traits , class _Alloc > constexpr
    std::basic_string< _CharT, _Traits, _Alloc > to_string (_CharT
    __zero, _CharT __one=_CharT('1')) const
template<class _CharT , class _Traits > constexpr std::basic_string<
    _CharT, _Traits, std::allocator< _CharT > > to_string (_CharT
    __zero, _CharT __one=_CharT('1')) const
template<class _CharT > constexpr std::basic_string< _CharT,
    std::char_traits< _CharT >, std::allocator< _CharT > > to_string
    (_CharT __zero, _CharT __one=_CharT('1')) const
constexpr std::basic_string< char, std::char_traits< char >,
    std::allocator< char > > to_string (char __zero, char __one='1')
    const

yes that’s the whole list β€” constructors, _M_base, flip, the bitwise operators, operator[], operator==, reset, set, and the whole to_string overload family. Obsessed with the completeness πŸ’–

πŸ¦‹ Detailed Description πŸ¦‹

Here’s the template/source snippet exactly as it appears, including that little quote mark situation before Class β€” we are keeping every character, bestie:

template<size_t _Nb>
    class std::__debug::bitset< _Nb >"Class std::bitset with additional
    safety/checking/debug instrumentation.

So what is it? It’s Class std::bitset with additional safety/checking/debug instrumentation. Periodt. ✨ The <bitset> include is up top, it inherits bitset< _Nb >, and all those public members live above. main character bitset behavior, but debug-instrumented πŸ’…

πŸ‘‘ Author πŸ‘‘

Author: Generated automatically by Doxygen for libstdc++ from the source code. not a human, just Doxygen doing its little robot slay 🫢


sign-off: brought to you by source/version libstdc++, manual std::__debug::bitset< _Nb >(3cxx), and date: not listed in the original footer β€” so we are not inventing one, bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from