bsl::bitset::set

set overloads

Synopses

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...

Return Value

reference to this modifiable bitset

Parameters

NameDescription
posindex of the bit to set
valvalue to assign to the bit (default true)