swap(std::mdspan)
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
swap(std::mdspan)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
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. 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 ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when std::mdspan
is an associated class of the arguments.
Contents
[edit] Parameters
x, y
-
mdspan
objects whose states to swap
[edit] Return value
(none)
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
This section is incomplete