set overloads
Declared in <bslstl_bitset.h>
Set all bits of this bitset to 1.
bitset<N>&
set() noexcept;
» more...
Set the bit at the specified pos to 1, or to val if supplied.
bitset<N>&
set(
std::size_t pos,
int val = true);
» more...
reference to this modifiable bitset
| Name | Description |
|---|---|
| pos | index of the bit to set |
| val | value to assign to the bit (default true) |