STD::_BASE_BITSET(3cxx)

✨ NAME ✨

okay so bestie, this is the manual page for std::_Base_bitset< _Nw >, manual section 3cxx β€” C++ libstdc++ template-base-class energy, no cap. It’s giving β€œI’m the base class, the general case, and the docs are about to be very exact about it” πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

Start here, babes:

#include <bitset>

πŸŽ€ Public Types πŸŽ€

  • typedef unsigned long _WordT β€” the word type, spelled exactly like this. Periodt.

πŸ’– Public Member Functions πŸ’–

Here’s the whole lineup, exact signatures, zero edits, because we do not mess with function signatures in this house:

  • constexpr _Base_bitset (unsigned long long __val) noexcept
  • template<size_t _Nb> constexpr bool _M_are_all () const noexcept
  • constexpr void _M_do_and (const _Base_bitset< _Nw > &__x) noexcept
  • constexpr size_t _M_do_count () const noexcept
  • constexpr size_t _M_do_find_first (size_t) const noexcept
  • constexpr size_t _M_do_find_next (size_t, size_t) const noexcept
  • constexpr void _M_do_flip () noexcept
  • constexpr void _M_do_left_shift (size_t __shift) noexcept
  • constexpr void _M_do_or (const _Base_bitset< _Nw > &__x) noexcept
  • constexpr void _M_do_reset () noexcept
  • constexpr void _M_do_right_shift (size_t __shift) noexcept
  • constexpr void _M_do_set () noexcept
  • constexpr unsigned long long _M_do_to_ullong () const
  • constexpr unsigned long _M_do_to_ulong () const
  • constexpr void _M_do_xor (const _Base_bitset< _Nw > &__x) noexcept
  • constexpr const _WordT * _M_getdata () const noexcept
  • constexpr _WordT _M_getword (size_t __pos) const noexcept
  • constexpr _WordT & _M_getword (size_t __pos) noexcept
  • constexpr _WordT _M_hiword () const noexcept
  • constexpr _WordT & _M_hiword () noexcept
  • constexpr bool _M_is_any () const noexcept
  • constexpr bool _M_is_equal (const _Base_bitset< _Nw > &__x) const noexcept

🌟 Static Public Member Functions 🌟

Static gang, stand up:

  • static constexpr _WordT _S_maskbit (size_t __pos) noexcept
  • static constexpr size_t _S_whichbit (size_t __pos) noexcept
  • static constexpr size_t _S_whichbyte (size_t __pos) noexcept
  • static constexpr size_t _S_whichword (size_t __pos) noexcept

πŸ“ Public Attributes πŸ“

  • _WordT _M_w [_Nw] β€” 0 is the least significant word.

🌸 Detailed Description 🌸

The source has this exact struct-and-template moment:

template<size_t _Nw>
    struct std::_Base_bitset< _Nw >"Base class, general case. It is a class
    invariant that _Nw will be nonnegative.

okay so yes, that stray " is glued onto the struct line in the original β€” I’m keeping it because we don’t edit the lore, bestie 😭 The actual tea is: base class, general case, and it is a class invariant that _Nw will be nonnegative.

See documentation for bitset.

πŸ“ Member Data Documentation πŸ“

template<size_t _Nw> _WordT std::_Base_bitset< _Nw >::_M_w[_Nw]

0 is the least significant word.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.


Sign-off cuteness: the footer credits libstdc++ as the source/version, and there’s no date listed there, so I’m not inventing one β€” byeee, go read the bitset docs, love u πŸ«ΆπŸ’–

πŸ“¦ where this page comes from