std::experimental::basic_string_view<CharT,Traits>::npos
來自 cppreference.com
< cpp | experimental | basic string view
static constexpr size_type npos = size_type(-1); |
(庫基礎 TS) | |
這是一個特殊值,等於 size_type
型別可表示的最大值。確切含義取決於上下文,但它通常被期望檢視索引的函式用作檢視結束指示符,或者被返回檢視索引的函式用作錯誤指示符。