std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>:: operator=
From cppreference.net
C++
Containers library
|
(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 |
std::mdspan
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
定义于头文件
<mdspan>
|
||
|
constexpr
mdspan
&
operator
=
(
const
mdspan
&
rhs
)
=
default
;
|
(1) | (C++23 起) |
|
constexpr
mdspan
&
operator
=
(
mdspan
&&
rhs
)
=
default
;
|
(2) | (C++23 起) |
将 rhs 赋值给 * this
1)
默认的复制赋值运算符
,
2)
默认移动赋值运算符
。
目录 |
参数
| 其他 | - | 要复制或移动的另一个 mdspan |
返回值
* this
示例
|
本节内容不完整
原因:缺少示例 |
参见
| 本节内容尚不完整 |