다음을 통해 공유


basic_string::front

문자열에서 첫 번째 요소에 대한 참조를 반환합니다.

const_reference front() const;
reference front();

반환 값

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

요구 사항

헤더: <string>

네임스페이스: std

참고 항목

참조

basic_string 클래스

<string>

기타 리소스

basic_string 멤버

<string> 멤버