std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::operator=
Определён в заголовочном файле <mdspan> | ||
|---|---|---|
constexpr mdspan& operator=( const mdspan& rhs ) = default; | (1) | (начиная с C++23) |
constexpr mdspan& operator=( mdspan&& rhs ) = default; | (2) | (начиная с C++23) |
Присваивает rhs объекту *this с помощью
Параметры
| other | - | другой объект mdspan, из которого выполняется копирование или перемещение |
Возвращаемое значение
*this
Пример
См. также
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/container/mdspan/operator%3D