std::experi..._view::npos(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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