Indexed bitset¶
-
template<typename Indexer>
class indexed_bitset¶ Container that encapsulate a bitset, whose individual bits are accessible using a custom indexing mechanism instead of a zero-based integer indexing. It is an aggregate type and is a replacement for
`std::bitset
, although the set of operation provided is slightly different. The guarantees are the same asstd::bitset
for operations that exists in both.
Construction and destruction¶
Constructors |
|
---|---|
Default construction |
|
Copy and move constructors |
|
Initialization from a ulonglong |
|
Safe initialization |
|
Construction by copy of a bitset |
|
Operators |
|
Copy / move assignment |
Destructor is explicitly defaulted.
Member functions¶
Data Access¶
Functions always present |
|
---|---|
Element access (range-checked) |
|
Element access (unchecked) |
|
Checks if all/any/none are set
to |
|
Number of bits set to |
Observers¶
Capacity |
|
---|---|
Number of elements in the bitset |
|
Extensions |
|
Checks if an index is in the acceptable range |
|