bsl::basic_string::operator[]

Return a reference to the character at the specified position.

Synopses

Declared in <bslstl_string.h>

Return a reference to the character at the specified position.

reference
operator[](size_type position);
» more...

Return a reference to the character at the specified position.

const_reference
operator[](size_type position) const;
» more...

Return Value

reference to the character at position

Parameters

NameDescription
positionstarting index