Access an element with bounds checking, throwing std::out_of_range if out of bounds.

Synopses

Declared in <util/bitdeque.h>

Access an element with bounds checking, throwing std::out_of_range if out of bounds.

reference
at(size_type position);

Access an element with bounds checking, throwing std::out_of_range if out of bounds.

const_reference
at(size_type position) const;

Return Value

  • Mutable reference to the requested bit.

  • Read‐only reference to the requested bit.

Parameters

Name

Description

position

Index of the bit to access.

Created with MrDocs