Create a bitset from the low‐order bits of the specified val.

Synopsis

Declared in <bslstl_bitset.h>

constexpr
bitset(unsigned long long val) noexcept;

Description

Create a bitset with its first M bit positions correspond to bit values in the specified val. M is the smaller of the parameterized N and 8 * sizeof(unsigned long long). If M < N, the remaining bit positions are initialized to 0.

Parameters

Name

Description

val

integer whose bits initialize the low‐order positions

Created with MrDocs