Accesses the character at the given position, with bounds checking

Synopsis

Declared in <mp‐units/ext/fixed_string.h>

[[nodiscard]]
constexpr
const_reference
at(size_type pos) const;

Return Value

The character at position pos

Note

The return value should not be discarded.

Parameters

Name

Description

pos

Position of the character to return

Created with MrDocs