(C++17) | ||||
| Sequence | ||||
(C++11) | ||||
(C++26) | ||||
(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 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
friendconstexprvoid swap( mdspan& x, mdspan& y)noexcept; | (since C++23) | |
Overloads thestd::swap algorithm forstd::mdspan. Exchanges the state ofx with that ofy. Equivalent to:
std::swap(x.acc_, y.acc_);
std::swap(x.map_, y.map_);
std::swap(x.ptr_, y.ptr_);
This function is not visible to ordinaryunqualified orqualified lookup, and can only be found byargument-dependent lookup whenstd::mdspan is an associated class of the arguments.
Contents |
| x, y | - | mdspan objects whose states to swap |
(none)
| This section is incomplete Reason: no example |
| This section is incomplete |