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β thereferencetype, 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 aconst _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 aconst _CharT *__str, with a whole_Require<...>gatekeeping situation up front.__ndefaults tostd::basic_string< _CharT >::npos,__zerodefaults to_CharT('0'),__onedefaults 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:__posdefaults to0,__ndefaults tostd::basic_string< _CharT, _Traits, _Alloc >::npos. ποΈconstexpr bitset (unsigned long long __val) noexceptβ constructor from anunsigned long long __val, and she'snoexcept. Unbothered. π§constexpr const _Base & _M_base () const noexceptβ hands you back aconst _Base &,noexcept. πconstexpr _Base & _M_base () noexceptβ same deal but non-const,_Base &, stillnoexcept. πconstexpr bitset< _Nb > & flip () noexceptβflip(), no args,noexcept, returnsbitset< _Nb > &. π©΄constexpr bitset< _Nb > & flip (size_t __pos)βflipbut with asize_t __pos. Note: nonoexcepton this one, and that's on purpose. πconstexpr bitset< _Nb > & operator&= (const bitset< _Nb > &__rhs) noexceptβ&=, takesconst bitset< _Nb > &__rhs,noexcept. βconstexpr bitset< _Nb > operator<< (size_t __pos) const noexceptβ<<bysize_t __pos, returns a freshbitset< _Nb >,constandnoexcept. πconstexpr bitset< _Nb > & operator<<= (size_t __pos) noexceptβ<<=bysize_t __pos,noexcept, returns the ref. πconstexpr bool operator== (const bitset< _Nb > &__rhs) const noexceptβ the equality check,const,noexcept, returnsbool. Bestie comparison hour. π«Άconstexpr bitset< _Nb > operator>> (size_t __pos) const noexceptβ>>bysize_t __pos, returns a newbitset< _Nb >,constandnoexcept. πconstexpr bitset< _Nb > & operator>>= (size_t __pos) noexceptβ>>=bysize_t __pos,noexcept. πΈconstexpr reference operator[] (size_t __pos)β subscript withsize_t __pos, returns areference. Iconic. πconstexpr bool operator[] (size_t __pos) constβ theconstsubscript,size_t __pos, returnsbool. Two of them, because of course. βοΈconstexpr bitset< _Nb > & operator^= (const bitset< _Nb > &__rhs) noexceptβ^=, takesconst bitset< _Nb > &__rhs,noexcept. π§¨constexpr bitset< _Nb > & operator|= (const bitset< _Nb > &__rhs) noexceptβ|=, takesconst bitset< _Nb > &__rhs,noexcept. πconstexpr bitset< _Nb > operator~ () const noexceptβ~, no args,const,noexcept, returnsbitset< _Nb >. π¦constexpr bitset< _Nb > & reset () noexceptβreset(), no args,noexcept. π§Όconstexpr bitset< _Nb > & reset (size_t __pos)βresetwith asize_t __pos(and again, nonoexcept). πconstexpr bitset< _Nb > & set () noexceptβset(), no args,noexcept. βconstexpr bitset< _Nb > & set (size_t __pos, bool __val=true)βsetwithsize_t __posandbool __valdefaulting totrue. π―constexpr std::basic_string< char, std::char_traits< char >, std::allocator< char > > to_string () constβto_string()returningstd::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-templatedto_string(),const. ποΈtemplate<typename _CharT, typename _Traits> constexpr std::basic_string< _CharT, _Traits, std::allocator< _CharT > > to_string () constβ now with_Traitsin 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β templatedto_stringthat takes_CharT __zeroand_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_Traitsadded,__onestill 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-charone:char __zero,char __onedefaulting 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