Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit f5a2dc2871.
PrevUpHomeNext
basic_static_string::at (2 of 2 overloads)

Access a character with bounds checking.

Synopsis
constexpr const_reference
at(
    size_type pos) const;
Description

Returns a reference to the character at index pos.

Complexity

Constant.

Exception Safety

Strong guarantee.

Parameters

Name

Description

pos

The index to access.

Exceptions

Type

Thrown On

std::out_of_range

pos >= size()


PrevUpHomeNext