swap(std::mdspan)
| Sequence | ||||
|
(C++11)
|
||||
|
(C++26)
|
||||
|
(C++11)
|
||||
| Associative | ||||
| Unordered associative | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Adaptors | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| Views | ||||
|
(C++20)
|
||||
|
(C++23)
|
||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
friend
constexpr
void swap( mdspan& x, mdspan& y )
noexcept
;
|
(since C++23) | |
Overloads the std::swap algorithm for std::mdspan. Exchanges the state of x with that of y
std::
swap
(x.
acc_
, y.
acc_
);
std::
swap
(x.
map_
, y.
map_
);
std::
swap
(x.
ptr_
, y.
ptr_
);
This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when std::mdspan
Parameters
| x, y | - | mdspan objects whose states to swap
|
Return value
(none)
Example
| This section is incomplete Reason: no example |
See also
| This section is incomplete |