libycxx

class template

std::bitset

Header
<bitset>
Scope
std
cppreference
std::bitset

Synopsis

template<size_t N>
class bitset;

Member types

NameDeclaration
referenceclass · nestedclass reference

Member functions

NameDeclaration
bitsetconstructor · 5 overloadsbitset() +4 more
allmember functionbool all() const
anymember functionbool any() const
countmember functionsize_t count() const
flipmember function · 2 overloadsbitset& flip() +1 more
nonemember functionbool none() const
operator&=operatorbitset& operator&=(const bitset& rhs)
operator<<=operatorbitset& operator<<=(size_t pos)
operator>>operatorbitset operator>>(size_t pos) const
operator>>=operatorbitset& operator>>=(size_t pos)
operator[]operator · 2 overloadsbool operator[](size_t pos) const +1 more
operator^=operatorbitset& operator^=(const bitset& rhs)
operator|=operatorbitset& operator|=(const bitset& rhs)
operator~operatorbitset operator~() const
resetmember function · 2 overloadsbitset& reset() +1 more
setmember function · 2 overloadsbitset& set() +1 more
sizemember functionsize_t size() const
testmember functionbool test(size_t pos) const
to_stringmember function templatebasic_string<charT, traits, Allocator> to_string(charT zero, charT one) const
to_ullongmember functionunsigned long long to_ullong() const
to_ulongmember functionunsigned long to_ulong() const
operator<<operatorbitset operator<<(size_t pos) const
operator==operatorbool operator==(const bitset& rhs) const