std::extents::index-cast(3)
π std::extents::index-cast(3) π
okay so bestie, welcome to std::extents::index-cast(3) from the C++ Standard Libary β that's the manual name, and yes it's spelled exactly like that. This page is short but it's giving C++23 template energy, so let's go β¨π«Ά
πΈ NAME πΈ
std::extents::index-castβstd::extents::index-castπ
β¨ Synopsis β¨
No cap, the whole synopsis is this exact code:
template< class OtherIndexType >
(since C++23)
static constexpr auto /*index-cast*/( OtherIndexType&& i )
(exposition only*)
noexcept;
It casts the index i in type OtherIndexType into a certain integral type. It is equivalent to:
return i;, ifOtherIndexTypeis an integral type other thanbool, andreturn static_cast<index_type>(i);otherwise.
lowkey important: the exposition only* bit stays exactly as written, bestie. Don't come for me. π
π Parameters π
iβ the index to be cast. That's it, that's the parameter. π«Ά
π Return value π
Cast index. Yep, literally the cast index. Slay.
π¦ Notes π¦
This section is incomplete. That's all it says. π
π Example π
This section is incomplete.
Reason: no example. Not me being left with no example π
π§ See also π§
This section is incomplete.
π Categories π
- Todo without reason
- Todo no example
π source:http://cppreference.comΒ· version/date:2024.06.10Β· this isstd::extents::index-cast(3), and that's the cute sign-off, bye bestie π«Άπ
π¦ 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