다음을 통해 공유


basic_string::reference

문자열에 저장된 요소에 대한 참조를 제공하는 형식입니다.

typedef typename allocator_type::reference reference;

설명

A type reference can be used to modify the value of an element.

The type is a synonym for allocator_type::reference.

For type string, it is equivalent to chr&.

예제

See the example for at for an example of how to declare and use reference.

요구 사항

헤더: <string>

네임스페이스: std

참고 항목

참조

basic_string 클래스