Return a reference to the character at the specified index.
Declared in <bslstl_stringref.h>
StringRefImp<CHAR_TYPE>::const_reference
operator[](size_type index) const;
Return a reference providing a non-modifiable access to the character at the specified index in the string bound to this reference. This reference remains valid as long as the string currently bound to this object remains valid. The behavior is undefined unless 0 <= index < length().
non-modifiable reference to the character at index
| Name | Description |
|---|---|
| index | position of the character to access |