std::extent...d-of-extents(3)

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

okay so bestie, this is std::extent...d-of-extents(3) from the C++ Standard Libary manual, and we're getting into the exposition-only std::extents::fwd-prod-of-extents vibe. C++23 constexpr math, no cap. πŸ’…

🌸 NAME 🌸

  • std::extents::fwd-prod-of-extents β€” std::extents::fwd-prod-of-extents (yes, the name said it twice, and honestly? iconic).

✨ Synopsis ✨

          constexpr std::size_t rank_type /*fwd-prod-of-extents*/(
       (since C++23)
          rank_type i ) const noexcept;
       (exposition only*)

Returns the product of the sizes of extents with index less than i. The behavior is undefined if i <= rank() is false. This whole thing is marked (exposition only*), so it's giving behind-the-scenes exposition energy. 😭

πŸ’… Parameters πŸ’…

  • i β€” the end index of the range of extents to be multiplied together. That's it, bestie. 🫢

πŸŽ€ Return value πŸŽ€

  • If i > 0 is true, return the product of extent(k) for all k in range [0, i), otherwise 1.

πŸ¦‹ Example πŸ¦‹

This section is incomplete Reason: no example

πŸ”₯ See also πŸ”₯

  • rev-prod-of-extents returns the product of extents size in range [i + 1, rank()) (exposition-only member function*)

πŸ‘‘ Category πŸ‘‘

  • * Todo no example

source/version: http://cppreference.com, date: 2024.06.10, page: std::extent...d-of-extents(3) β€” mwah, bye bestie πŸ’–βœ¨

πŸ“¦ where this page comes from