std::mdspan::is_unique,(3)
π std::mdspan::is_unique,(3) π
okay so bestie, welcome to the C++ Standard Libary manual β yes, that's how the header spells it, I'm not fixing it β and this is the page for std::mdspan::is_unique,(3). It's giving C++23 constexpr bool trait-check energy, and we're gonna get through every signature together. π«Ά
β¨ NAME β¨
std::mdspan::is_unique,β and the description side is also literallystd::mdspan::is_unique,. Same string twice, trailing comma included. Not me questioning it, just reporting the facts. π
π¦ Synopsis π¦
Here's the whole squad, formatting and all:
std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_strided,
std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_always_unique,
std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_always_exhaustive,
std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_always_strided
Defined in header <mdspan>
constexpr bool is_unique() const; (1) (since C++23)
constexpr bool is_exhaustive() const; (2) (since C++23)
constexpr bool is_strided() const; (3) (since C++23)
static member functions
static constexpr bool is_always_unique(); (4) (since C++23)
static constexpr bool is_always_exhaustive(); (5) (since C++23)
static constexpr bool is_always_strided(); (6) (since C++23)
So what are these doing? They check if (1-3) the layout mapping map_ or (4-6) its type mapping_type satisfies some traits. periodt. π
- 1-3) Let
funcbe (1)is_unique, (2)is_exhaustive, or (3)is_strided, then it's equivalent toreturn map_.func();. - 4-6) Let
funcbe (4)is_always_unique, (5)is_always_exhaustive, or (6)is_always_strided, then it's equivalent toreturn mapping_type::func();.
β οΈ This section is incomplete β Reason: add hyperlink to layout.reqmts(yet has not been created).
π Parameters π
(none)β literally no parameters, bestie. Nothing to pass, nothing to stress about. π
π Return value π
See above. That's the whole answer, no cap. β¨
π Example π
π§ This section is incomplete β Reason: no example.
π See also π
π§ This section is incomplete.
π Categories π
- Todo with reason
- Todo no example
- Todo without reason
mwah π source: http://cppreference.com, version/date: 2024.06.10, page: std::mdspan::is_unique,(3). That's the footer, bestie β now go check those bools. π«Ά
π¦ 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