std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::mapping-traits
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Containers library
(C++17)
(C++11)
(C++26)
(C++26)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++23)
(C++23)
(C++20)
(C++23)
Tables
std::mdspan
mdspan::is_uniquemdspan::is_exhaustivemdspan::is_stridedmdspan::is_always_uniquemdspan::is_always_exhaustivemdspan::is_always_strided
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
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 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)
Checks if (1-3) the underlying layout mapping map_
or (4-6) its type mapping_type
models the semantics of LayoutMapping's predicate mapping traits.
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();.Contents
[edit] Parameters
(none)
[edit] Return value
See above.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
This section is incomplete