std::experi..._view::size,(3)

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

🌸 NAME 🌸

okay so bestie, welcome to the std::experi..._view::size,(3) page from the C++ Standard Libary manual. This is the main-character page for std::experimental::basic_string_view::size β€” and the NAME line literally lists both of these:

  • std::experimental::basic_string_view::size, -
  • std::experimental::basic_string_view::size,

periodt. That’s the name situation, no cap. πŸ’…

✨ Synopsis ✨

Two signatures, both tagged (library fundamentals TS), and yes they are constexpr and noexcept:

constexpr size_type size() const noexcept;    (library fundamentals TS)
constexpr size_type length() const noexcept;  (library fundamentals TS)

This one returns the number of CharT elements in the view, i.e. std::distance(begin(), end()). fr fr, that’s the whole vibe. πŸ¦‹

πŸŽ€ Parameters πŸŽ€

(none)

Literally none. Not a single parameter. The vibe check is empty. πŸ’€

πŸ’– Return value πŸ’–

The number of CharT elements in the view. That’s the return value, bestie. Slay. ✨

πŸ”₯ Complexity πŸ”₯

Constant. No cap, it’s constant. Keep it moving. πŸ’…

🌈 See also 🌈

  • empty β€” checks whether the view is empty (public member function)
  • max_size β€” returns the maximum number of characters (public member function)

πŸ‘‘ Category πŸ‘‘

  • * Noindexed pages

This adorable little page came from http://cppreference.com, with the version/date 2024.06.10, and the page is std::experi..._view::size,(3). Byeee bestie, go check that view size πŸ’–πŸ«Άβœ¨

πŸ“¦ where this page comes from