std::ranges..._view::size(3)

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

🌸 NAME 🌸

Bestie, welcome to the std::ranges..._view::size(3) page from the C++ Standard Libary manual ✨ β€” yes, that’s the manual name, we’re keeping it exactly as-is. This page is all about std::ranges::elements_view::size β€” and the NAME section is literally std::ranges::elements_view::size - std::ranges::elements_view::size, iconic repetition, no notes πŸ’….


✨ Synopsis ✨

constexpr auto size() requires ranges::sized_range<V>;

(since C++20)

constexpr auto size() const requires ranges::sized_range<const V>;

(since C++20)

It returns the number of elements, i.e. ranges::size(base_), where base_ is the underlying view 🫢.


πŸŽ€ Parameters πŸŽ€

(none) β€” zero, nada, no arguments needed, periodt πŸ’–.


πŸ’– Return value πŸ’–

The number of elements. That’s the whole vibe πŸ”₯.


πŸ¦‹ Example πŸ¦‹

This section is incomplete Reason: no example

😭 it’s giving β€œwe’ll finish this later,” but that’s exactly what the page says.


πŸ”₯ See also πŸ”₯

  • ranges::size β€” returns an integer equal to the size of a range (C++20) (customization point object) πŸ‘‘
  • ranges::ssize β€” returns a signed integer equal to the size of a range (C++20) (customization point object) 🌟

🏷️ Category 🏷️

  • Todo no example πŸ’€

Source/version/date, bestie: http://cppreference.com, 2024.06.10, page std::ranges..._view::size(3) β€” bye and slay πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from