basic_string::back

Returns a reference to the last element in the string.

const_reference back() const;
reference back();

A reference to the last element of the string, which must be non-empty.

Header: <string>

Namespace: std

Show: