at overloads
Synopses
Declared in <bslstl_string.h>
Return a reference providing modifiable access to the character at the specified position in this string. Throw out_of_range if `position >= length()`.
reference
at(size_type position);
Return a reference providing non‐modifiable access to the character at the specified position in this string. Throw out_of_range if position >= length().
const_reference
at(size_type position) const;
Return Value
reference to the character at position
Parameters
Name |
Description |
position |
starting index |
Created with MrDocs