std::mdspan::is_unique,(3)

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

πŸ’… 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 literally std::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 func be (1) is_unique, (2) is_exhaustive, or (3) is_strided, then it's equivalent to return map_.func();.
  • 4-6) Let func be (4) is_always_unique, (5) is_always_exhaustive, or (6) is_always_strided, then it's equivalent to return 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