| Home | Libraries | People | FAQ | More

##### basic_static_string::at (2 of 2 overloads)

Access a character with bounds checking.

###### Synopsis

    constexpr basic_static_string::const_reference
    at(
        basic_static_string::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()`