다음을 통해 공유


basic_string::const_reference

A type that provides a reference to a const element stored in a string for reading and performing const operations.

typedef typename allocator_type::const_reference const_reference;

설명

const_reference 유형은 요소의 값을 수정하는 것을 사용할 수 없습니다.

The type is a synonym for allocator_type::const_reference. For string type, it is equivalent to const char&.

예제

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

요구 사항

헤더: <string>

네임스페이스: std

참고 항목

참조

basic_string 클래스