std::extent...ynamic-index(3)
π std::extent...ynamic-index(3) π
okay bestie, welcome to a page from the C++ Standard Libary manual β yes, thatβs the manual name, and weβre keeping it exactly as it appears. This one is all about std::extents::dynamic-index, and itβs giving βprivate exposition-only helperβ energy, no cap.
β¨ NAME β¨
std::extents::dynamic-index β std::extents::dynamic-index.
Thatβs it. Thatβs the name. Iconic, honestly.
π¦ Synopsis π¦
So this thing is private: and itβs marked as exposition only, since C++23. Hereβs the signature in all its exact glory:
private:
template< class OtherIndexType >
(since C++23)
(exposition only*)
static constexpr auto /*dynamic-index*/( rank_type i )
noexcept;
It returns the number of dynamic extents below index i.
And bestie, listen: if i <= rank() is false, the behavior is undefined. Not me testing that and pretending itβs fine. Do not. π
πΈ Parameters πΈ
iβ the index. Thatβs the whole parameter list, bestie.
π Return value π
The return value is the number of E[r] with r < i for which E[r] is a dynamic extent. Slay, thatβs the fact.
π§ Example π§
This section is incomplete. Reason: no example
Literal tumbleweed energy π but thatβs what the page says.
π¦ See also π¦
This section is incomplete.
π Categories π
Todo no exampleTodo without reason
Sign-off tea: this was from http://cppreference.com, dated 2024.06.10, and the page tag is std::extent...ynamic-index(3). bye bestie, mwah ππ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms