bsl::bitset::operator[]

Subscript operators

Synopses

Declared in <bslstl_bitset.h>

Return a reference to the modifiable bit position at the specified pos.

bitset<N>::reference
operator[](std::size_t pos);
» more...

Return the value of the bit position at the specified pos.

constexpr
bool
operator[](std::size_t pos) const;
» more...

Return Value

  • reference to the modifiable bit at pos
  • value of the bit at pos

Parameters

NameDescription
posindex of the bit to access