📜  什么是 string::npos - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:44.295000             🧑  作者: Mango

代码示例1
npos is a constant static member value with the greatest possible value for an element of type size_t. This value, when used as the value for a len parameter in string's member functions, means until the end of the string. ... As a return value, it is usually used to indicate that no matches were found in the string