std::experi..._view::npos(3)
π NAME π
Welcome to the std::experi..._view::npos(3) page from the C++ Standard Libary manual, bestie. The star of the show is std::experimental::basic_string_view::npos β and yes, that's also std::experimental::basic_string_view::npos. Iconic name, no notes. β¨
πΈ Synopsis πΈ
Here's the synopsis, served fresh:
static constexpr size_type npos = size_type(-1);
That (library fundamentals TS) tag is part of the deal too.
So what is it? It's a special value equal to the maximum value representable by the type size_type. The exact meaning depends on context, but it's generally used either as an end of view indicator by functions that expect a view index, or as an error indicator by functions that return a view index. Periodt. π
π Category π
Noindexed pages
source/version: http://cppreference.com, date: 2024.06.10 β mwah, bye bestie! π«Άπ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms