STD::TR2::__DYNAMIC_BITSET_BASE(3cxx)
π std::tr2::__dynamic_bitset_base< _WordT, _Alloc > π
okay bestie, this is the 3cxx manual page and it's giving very specific base-class energy. Keep your allocator close and your words in a std::vector, periodt. π
π NAME π
std::tr2::__dynamic_bitset_base< _WordT, _Alloc > β that's the name, no cap. It's the base-class general case, and the full tea is in the dynamic_bitset docs. π«Ά
β¨ SYNOPSIS β¨
#include <dynamic_bitset>
Inherited by std::tr2::dynamic_bitset< _WordT, _Alloc > [private]. Private-parent energy, iykyk. πΈ
π Public Types π
typedef _Alloc allocator_typeβ the allocator type is literally_Alloc, iconic.typedef _WordT block_typeβ the block type is_WordT, exactly as it says.typedef size_t size_typeβ size type issize_t, clean.
π Public Member Functions π
__dynamic_bitset_base (__dynamic_bitset_base &&__b)=defaultβ move constructor, defaulted.__dynamic_bitset_base (const __dynamic_bitset_base &)=defaultβ copy constructor, also defaulted.__dynamic_bitset_base (const allocator_type &__alloc)β constructor taking anallocator_typereference.__dynamic_bitset_base (size_type __nbits, unsigned long long __val=0ULL, const allocator_type &__alloc=allocator_type())β constructor with__nbits,__valdefaulting to0ULL, and__allocdefaulting toallocator_type().size_t _M_are_all_aux () const noexceptβ returnssize_t,const,noexcept.void _M_clear () noexceptβ returnsvoid,noexcept.void _M_do_and (const __dynamic_bitset_base &__x) noexceptβ takesconst __dynamic_bitset_base &__x, returnsvoid,noexcept.void _M_do_append_block (block_type __block, size_type __pos)β takesblock_type __blockandsize_type __pos.size_t _M_do_count () const noexceptβ returnssize_t,const,noexcept.void _M_do_dif (const __dynamic_bitset_base &__x) noexceptβ yes, it's_M_do_dif, not a typo, bestie. Takesconst __dynamic_bitset_base &__x,noexcept.size_type _M_do_find_first (size_t __not_found) constβ returnssize_type, takessize_t __not_found,const.size_type _M_do_find_next (size_t __prev, size_t __not_found) constβ returnssize_type, takessize_t __prevandsize_t __not_found,const.void _M_do_flip () noexceptβ returnsvoid,noexcept.void _M_do_left_shift (size_t __shift)β takessize_t __shift.void _M_do_or (const __dynamic_bitset_base &__x) noexceptβ takesconst __dynamic_bitset_base &__x,noexcept.void _M_do_reset () noexceptβ returnsvoid,noexcept.void _M_do_right_shift (size_t __shift)β takessize_t __shift.void _M_do_set () noexceptβ returnsvoid,noexcept.unsigned long long _M_do_to_ullong () constβ returnsunsigned long long,const.unsigned long _M_do_to_ulong () constβ returnsunsigned long,const.void _M_do_xor (const __dynamic_bitset_base &__x) noexceptβ takesconst __dynamic_bitset_base &__x,noexcept.allocator_type _M_get_allocator () const noexceptβ returnsallocator_type,const,noexcept.block_type _M_getword (size_type __pos) const noexceptβ returnsblock_type, takessize_type __pos,const,noexcept.block_type & _M_getword (size_type __pos) noexceptβ returnsblock_type &, takessize_type __pos,noexcept.block_type _M_hiword () const noexceptβ returnsblock_type,const,noexcept.block_type & _M_hiword () noexceptβ returnsblock_type &,noexcept.bool _M_is_any () const noexceptβ returnsbool,const,noexcept.bool _M_is_equal (const __dynamic_bitset_base &__x) const noexceptβ returnsbool, takesconst __dynamic_bitset_base &__x,const,noexcept.bool _M_is_less (const __dynamic_bitset_base &__x) const noexceptβ returnsbool, takesconst __dynamic_bitset_base &__x,const,noexcept.bool _M_is_proper_subset_of (const __dynamic_bitset_base &__b) const noexceptβ returnsbool, takesconst __dynamic_bitset_base &__b,const,noexcept.bool _M_is_subset_of (const __dynamic_bitset_base &__b) noexceptβ returnsbool, takesconst __dynamic_bitset_base &__b,noexcept.void _M_resize (size_t __nbits, bool __value)β takessize_t __nbitsandbool __value.size_type _M_size () const noexceptβ returnssize_type,const,noexcept.void _M_swap (__dynamic_bitset_base &__b) noexceptβ takes__dynamic_bitset_base &__b,noexcept.__dynamic_bitset_base & operator= (__dynamic_bitset_base &&)=defaultβ move assignment, defaulted.__dynamic_bitset_base & operator= (const __dynamic_bitset_base &)=defaultβ copy assignment, defaulted.
π Static Public Member Functions π
static block_type _S_maskbit (size_type __pos) noexceptβ static, returnsblock_type, takessize_type __pos,noexcept.static size_type _S_whichbit (size_type __pos) noexceptβ static, returnssize_type, takessize_type __pos,noexcept.static size_type _S_whichbyte (size_type __pos) noexceptβ static, returnssize_type, takessize_type __pos,noexcept.static size_type _S_whichword (size_type __pos) noexceptβ static, returnssize_type, takessize_type __pos,noexcept.
π¦ Public Attributes π¦
std::vector< block_type, allocator_type > _M_wβ this is_M_w, and the note is important:0is the least significant word. π«Ά
π Static Public Attributes π
static const size_type _S_bits_per_blockβ static constsize_type.static const size_type nposβ static constsize_type, iconic.
π Detailed Description π
Here's the exact template/code-block situation, stray quote and all β I'm not touching it:
template<typename _WordT = unsigned long long, typename _Alloc =
std::allocator<_WordT>>
struct std::tr2::__dynamic_bitset_base< _WordT, _Alloc >"Base class,
general case.
So: Base class, general case. And also: See documentation for dynamic_bitset. That's the whole vibe. β¨
π Member Data Documentation π
The exact member-data block is:
template<typename _WordT = unsigned long long, typename _Alloc =
std::allocator<_WordT>> std::vector<block_type, allocator_type>
std::tr2::__dynamic_bitset_base< _WordT, _Alloc >::_M_w
0 is the least significant word.
So _M_w is the std::vector<block_type, allocator_type> member, and yes, 0 is the least significant word. no cap. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
okay bye bestie! π«Ά source/version note: the footer has libstd as the source/version chunk, the manual is 3cxx, and there is no date printed on this page. π
π¦ 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