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).
Synopsis
Declared in <bslstl_bitset.h>
template<std::size_t N>
class bitset;
Description
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.
Types
Name |
Description |
This class represents a reference to a modifiable bit inside a |
Member Functions
Name |
Description |
|
Constructors |
Return |
|
Return |
|
Return the number of bits in this bitset that have the value of 1. |
|
|
|
Return |
|
Clear each bit of this bitset for each corresponding bit that is 0 in the specified |
|
Shift the bits of this bitset left (towards the most significant bit) by the specified |
|
Return a bitset constructed from shifting this bitset right by the specified |
|
Shift the bits of this bitset right (towards the least significant bit) by the specified |
|
Subscript operators |
|
Toggle each bit of this bitset for each corresponding bit that is 1 in the specified |
|
Set each bit of this bitset for each corresponding bit that is 1 in the specified |
|
Toggle all bits of this bitset and return a reference to this modifiable bitset. |
|
|
|
|
|
Return the number of bits this bitset holds. |
|
Return |
|
Return a |
|
Return an |
|
Return a bitset constructed from shifting this bitset left by the specified |
|
Return |
|
Return |
Friends
Name |
Description |
Proxy providing a mutable reference to a single bit in a |
Non-Member Functions
Name |
Description |
Return a |
|
Return a |
|
Return a |
Created with MrDocs