set overloads

Synopses

Declared in <bslstl_bitset.h>

Set all bits of this bitset to 1.

bitset<N>&
set() noexcept;

Set the bit at the specified pos to 1, or to val if supplied.

bitset<N>&
set(
    std::size_t pos,
    int val = true);

Return Value

reference to this modifiable bitset

Parameters

Name

Description

pos

index of the bit to set

val

value to assign to the bit (default true)

Created with MrDocs