Quick Links:

bal | bbl | bdl | bsl

Classes | Public Member Functions | Friends

bsl::bitset< N > Class Template Reference
[Component bslstl_bitset]

#include <bslstl_bitset.h>

List of all members.

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'))
bitsetoperator&= (const bitset &rhs) BSLS_KEYWORD_NOEXCEPT
bitsetoperator|= (const bitset &rhs) BSLS_KEYWORD_NOEXCEPT
bitsetoperator^= (const bitset &rhs) BSLS_KEYWORD_NOEXCEPT
bitsetoperator<<= (std::size_t pos) BSLS_KEYWORD_NOEXCEPT
bitsetoperator>>= (std::size_t pos) BSLS_KEYWORD_NOEXCEPT
bitsetflip () BSLS_KEYWORD_NOEXCEPT
bitsetflip (std::size_t pos)
bitsetreset () BSLS_KEYWORD_NOEXCEPT
bitsetreset (std::size_t pos)
bitsetset () BSLS_KEYWORD_NOEXCEPT
bitsetset (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

Detailed Description

template<std::size_t N>
class bsl::bitset< N >

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.

See Component bslstl_bitset


The documentation for this class was generated from the following file: