Quick Links: |
#include <bslstl_bitset.h>
Classes | |
class | reference |
Public Member Functions | |
BSLS_KEYWORD_CONSTEXPR | bitset () BSLS_KEYWORD_NOEXCEPT |
BSLS_KEYWORD_CONSTEXPR | bitset (unsigned long val) BSLS_KEYWORD_NOEXCEPT |
template<class CHAR_TYPE , class TRAITS , class ALLOCATOR > | |
bitset (const std::basic_string< CHAR_TYPE, TRAITS, ALLOCATOR > &str, typename std::basic_string< CHAR_TYPE, TRAITS, ALLOCATOR >::size_type pos=0, typename std::basic_string< CHAR_TYPE, TRAITS, ALLOCATOR >::size_type n=std::basic_string< CHAR_TYPE, TRAITS, ALLOCATOR >::npos, CHAR_TYPE zeroChar=CHAR_TYPE('0'), CHAR_TYPE oneChar=CHAR_TYPE('1')) | |
template<class CHAR_TYPE , class TRAITS , class ALLOCATOR > | |
bitset (const bsl::basic_string< CHAR_TYPE, TRAITS, ALLOCATOR > &str, typename bsl::basic_string< CHAR_TYPE, TRAITS, ALLOCATOR >::size_type pos=0, typename bsl::basic_string< CHAR_TYPE, TRAITS, ALLOCATOR >::size_type n=bsl::basic_string< CHAR_TYPE, TRAITS, ALLOCATOR >::npos, CHAR_TYPE zeroChar=CHAR_TYPE('0'), CHAR_TYPE oneChar=CHAR_TYPE('1')) | |
bitset & | operator&= (const bitset &rhs) BSLS_KEYWORD_NOEXCEPT |
bitset & | operator|= (const bitset &rhs) BSLS_KEYWORD_NOEXCEPT |
bitset & | operator^= (const bitset &rhs) BSLS_KEYWORD_NOEXCEPT |
bitset & | operator<<= (std::size_t pos) BSLS_KEYWORD_NOEXCEPT |
bitset & | operator>>= (std::size_t pos) BSLS_KEYWORD_NOEXCEPT |
bitset & | flip () BSLS_KEYWORD_NOEXCEPT |
bitset & | flip (std::size_t pos) |
bitset & | reset () BSLS_KEYWORD_NOEXCEPT |
bitset & | reset (std::size_t pos) |
bitset & | set () BSLS_KEYWORD_NOEXCEPT |
bitset & | set (std::size_t pos, int val=true) |
reference | operator[] (std::size_t pos) |
bitset | operator<< (std::size_t pos) const BSLS_KEYWORD_NOEXCEPT |
bitset | operator>> (std::size_t pos) const BSLS_KEYWORD_NOEXCEPT |
bitset | operator~ () const BSLS_KEYWORD_NOEXCEPT |
BSLS_KEYWORD_CONSTEXPR bool | operator[] (std::size_t pos) const |
bool | operator== (const bitset &rhs) const BSLS_KEYWORD_NOEXCEPT |
bool | operator!= (const bitset &rhs) const BSLS_KEYWORD_NOEXCEPT |
bool | all () const BSLS_KEYWORD_NOEXCEPT |
bool | any () const BSLS_KEYWORD_NOEXCEPT |
bool | none () const BSLS_KEYWORD_NOEXCEPT |
std::size_t | count () const BSLS_KEYWORD_NOEXCEPT |
BSLS_KEYWORD_CONSTEXPR std::size_t | size () const BSLS_KEYWORD_NOEXCEPT |
bool | test (size_t pos) const |
template<class CHAR_TYPE , class TRAITS , class ALLOCATOR > | |
basic_string< CHAR_TYPE, TRAITS, ALLOCATOR > | to_string (CHAR_TYPE zero=CHAR_TYPE('0'), CHAR_TYPE one=CHAR_TYPE('1')) const |
unsigned long | to_ulong () const |
Friends | |
class | reference |
This class template provides an STL-compliant bitset
. For the requirements of a bitset
class, consult the second revision of the ISO/IEC 14882 Programming Language c++ (2011).
In addition to the methods defined in the standard, this class also provides an extra constructor that takes a bsl::basic_string
. This extra constructor provides the capability to construct a bitset
from a bsl::basic_string
, in addition to a std::basic_string
.