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 c9f80fce48.
PrevUpHomeNext
basic_static_string::at (1 of 2 overloads)

Access a character with bounds checking.

Synopsis
constexpr reference
at(
    size_type pos);
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