STD::__DEBUG::BITSET(3)

πŸ’– NAME πŸ’–

std::__debug::bitset< _Nb > β€” it's literally just class std::bitset but with extra safety / checking / debug instrumentation stacked on top. Yes bestie, the whole class, glowed up and looking over your shoulder. πŸ‘€βœ¨


✨ SYNOPSIS ✨

#include <bitset>

πŸŽ€ Public Types πŸŽ€

  • typedef _Base::reference reference β€” the reference type, straight-up borrowed from _Base. It's giving hand-me-down but make it couture. πŸ’…

πŸ¦‹ Public Member Functions πŸ¦‹

  • constexpr bitset (const _Base &__x) β€” constructor that takes a const _Base &__x. 🍼
  • template<typename _CharT, typename = _Require<is_trivially_copyable<_CharT>, is_standard_layout<_CharT>, is_trivially_default_constructible<_CharT>, __not_<is_array<_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')) β€” the template constructor that takes a const _CharT *__str, with a whole _Require<...> gatekeeping situation up front. __n defaults to std::basic_string< _CharT >::npos, __zero defaults to _CharT('0'), __one defaults to _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')) β€” string constructor, full-strength version: takes __str, __pos, __n, __zero, and __one (defaulting to _CharT('1')). No defaults on the middle ones, she's demanding. 😌
  • 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)) β€” string constructor, chill version: __pos defaults to 0, __n defaults to std::basic_string< _CharT, _Traits, _Alloc >::npos. πŸ›‹οΈ
  • constexpr bitset (unsigned long long __val) noexcept β€” constructor from an unsigned long long __val, and she's noexcept. Unbothered. 🧘
  • constexpr const _Base & _M_base () const noexcept β€” hands you back a const _Base &, noexcept. πŸ”’
  • constexpr _Base & _M_base () noexcept β€” same deal but non-const, _Base &, still noexcept. πŸ”“
  • constexpr bitset< _Nb > & flip () noexcept β€” flip(), no args, noexcept, returns bitset< _Nb > &. 🩴
  • constexpr bitset< _Nb > & flip (size_t __pos) β€” flip but with a size_t __pos. Note: no noexcept on this one, and that's on purpose. πŸ‘€
  • constexpr bitset< _Nb > & operator&= (const bitset< _Nb > &__rhs) noexcept β€” &=, takes const bitset< _Nb > &__rhs, noexcept. βž•
  • constexpr bitset< _Nb > operator<< (size_t __pos) const noexcept β€” << by size_t __pos, returns a fresh bitset< _Nb >, const and noexcept. 🎈
  • constexpr bitset< _Nb > & operator<<= (size_t __pos) noexcept β€” <<= by size_t __pos, noexcept, returns the ref. 🎊
  • constexpr bool operator== (const bitset< _Nb > &__rhs) const noexcept β€” the equality check, const, noexcept, returns bool. Bestie comparison hour. 🫢
  • constexpr bitset< _Nb > operator>> (size_t __pos) const noexcept β€” >> by size_t __pos, returns a new bitset< _Nb >, const and noexcept. πŸŽ€
  • constexpr bitset< _Nb > & operator>>= (size_t __pos) noexcept β€” >>= by size_t __pos, noexcept. 🌸
  • constexpr reference operator[] (size_t __pos) β€” subscript with size_t __pos, returns a reference. Iconic. πŸ‘‘
  • constexpr bool operator[] (size_t __pos) const β€” the const subscript, size_t __pos, returns bool. Two of them, because of course. ✌️
  • constexpr bitset< _Nb > & operator^= (const bitset< _Nb > &__rhs) noexcept β€” ^=, takes const bitset< _Nb > &__rhs, noexcept. 🧨
  • constexpr bitset< _Nb > & operator|= (const bitset< _Nb > &__rhs) noexcept β€” |=, takes const bitset< _Nb > &__rhs, noexcept. πŸ“
  • constexpr bitset< _Nb > operator~ () const noexcept β€” ~, no args, const, noexcept, returns bitset< _Nb >. πŸ¦‹
  • constexpr bitset< _Nb > & reset () noexcept β€” reset(), no args, noexcept. 🧼
  • constexpr bitset< _Nb > & reset (size_t __pos) β€” reset with a size_t __pos (and again, no noexcept). πŸ‘€
  • constexpr bitset< _Nb > & set () noexcept β€” set(), no args, noexcept. ⭐
  • constexpr bitset< _Nb > & set (size_t __pos, bool __val=true) β€” set with size_t __pos and bool __val defaulting to true. 🍯
  • constexpr std::basic_string< char, std::char_traits< char >, std::allocator< char > > to_string () const β€” to_string() returning std::basic_string< char, std::char_traits< char >, std::allocator< char > >, const. πŸ“
  • template<typename _CharT> constexpr std::basic_string< _CharT, std::char_traits< _CharT >, std::allocator< _CharT > > to_string () const β€” the _CharT-templated to_string(), const. πŸ–ŠοΈ
  • template<typename _CharT, typename _Traits> constexpr std::basic_string< _CharT, _Traits, std::allocator< _CharT > > to_string () const β€” now with _Traits in the mix too, const. πŸ–‹οΈ
  • template<typename _CharT, typename _Traits, typename _Alloc> constexpr std::basic_string< _CharT, _Traits, _Alloc > to_string () const β€” the full trio: _CharT, _Traits, _Alloc, 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 β€” templated to_string that takes _CharT __zero and _CharT __one (defaulting to _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 β€” same but with _Traits added, __one still defaults to _CharT('1'), const. 🌺
  • template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string< _CharT, _Traits, _Alloc > to_string (_CharT __zero, _CharT __one=_CharT('1')) const β€” all three template params, __zero, __one=_CharT('1'), const. 🌻
  • constexpr std::basic_string< char, std::char_traits< char >, std::allocator< char > > to_string (char __zero, char __one='1') const β€” the plain-char one: char __zero, char __one defaulting to '1', const. πŸ€

πŸ” Detailed Description πŸ”

template<size_t _Nb>
    class std::__debug::bitset< _Nb >

Class std::bitset with additional safety / checking / debug instrumentation. That's the whole vibe. It's the bitset you know, but she brought a chaperone. 🫢


🌈 Author 🌈

Generated automatically by Doxygen for libstdc++ from the source code. Not a human, not a bestie, just a robot doing its lil job. πŸ€–πŸ’–


And that's the whole page, bestie! This one's from the libstdc++ manual, section 3 (library functions), header title std::__deb...tset< _Nb >(3) β€” go forth and debug your bitsets with main character energy. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms