basic_string::npos
–1로 초기화된 부호 없는 정수 값은 검색 함수가 실패할 때 "찾을 수 없음" 또는 "남아 있는 모든 문자"를 나타냅니다.
static const size_type npos = -1;
설명
When the return value is to be checked for the npos value, it might not work unless the return value is of type size_type and not either int or unsigned.
예제
See the example for find for an example of how to declare and use npos.
요구 사항
헤더: <string>
네임스페이스: std