다음을 통해 공유


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.

요구 사항

헤더: <string>

네임스페이스: std

참고 항목

참조

basic_string 클래스

<string>

기타 리소스

basic_string 멤버

<string> 멤버