| Home | Libraries | People | FAQ | More

###### string::at (1 of 2 overloads)

Return a character with bounds checking.

<h7> Synopsis </h7>

    char&
    at(
        std::size_t pos);

<h7> Description </h7>

Returns a reference to the character specified at location `pos`.

<h7> Complexity </h7>

Constant.

<h7> Exception Safety </h7>

Strong guarantee.

<h7> Parameters </h7>

Name | Description
--- | ---
`pos` | A zero-based index to access.

<h7> Exceptions </h7>

Type | Thrown On
--- | ---
`std::out_of_range` | `pos >= size()`