std::mdspan::size(3)

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

okay bestie, welcome to the std::mdspan::size(3) page β€” manual name? C++ Standard Libary (yes, that spelling, not me πŸ‘€). This one is short, but it's still giving main character energy.


🌸 NAME 🌸

std::mdspan::size β€” literally std::mdspan::size, that's the whole name bestie. Iconic.

πŸ¦‹ Synopsis πŸ¦‹

constexpr size_type size() const noexcept;  (since C++23)

Returns the number of elements in mdspan.

It's equivalent to extents().fwd-prod-of-extents(rank()).

🚨 okay so listen: if the size of the multidimensional index space extents() is not representable as a value of type size_type, the behavior of the program is undefined. Like, no cap, that's UB β€” stay safe out there. πŸ’€

🌈 Parameters 🌈

  • (none) β€” yep, zero parameters. nada. zilch. we love a low-maintenance icon. ✨

πŸŽ€ Return value πŸŽ€

The number of elements. that's it. that's the whole vibe. πŸ’–

πŸ“ Example πŸ“

This section is incomplete.

Reason: no example.

😭 not me being left with no example β€” tragic, honestly.

🫢 See also 🫢

This section is incomplete.

🧚 Categories 🧚

  • Todo no example
  • Todo without reason

xoxo, your bestie πŸ’… β€” source: http://cppreference.com, version/date: 2024.06.10 πŸ’–

πŸ“¦ where this page comes from