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 复制,使用:
1) 预置的复制赋值运算符,
2) 预置的移动赋值运算符。
参数
| other | - | 要从之复制或移动的另一 mdspan |
返回值
*this
示例
| 本节未完成 原因:暂无示例 |
参阅
| 本节未完成 |