std::move_iterator<Iter>::operator=
來自 cppreference.com
template< class U > move_iterator& operator=( const move_iterator<U>& other ); |
(自 C++17 起為 constexpr) | |
如果 |
(C++20 前) |
此過載僅當 std::is_same_v<U, Iter> 為 false 且同時滿足 std::convertible_to<const U&, Iter> 和 std::assignable_from<Iter&, const U&> 時才參與過載決議。 |
(C++20 起) |
目錄 |
[編輯] 引數
其他 | - | 要賦值的迭代器介面卡 |
[編輯] 返回值
*this
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 缺陷報告
下列更改行為的缺陷報告追溯地應用於以前出版的 C++ 標準。
缺陷報告 | 應用於 | 釋出時的行為 | 正確的行為 |
---|---|---|---|
LWG 3435 | C++20 | 轉換賦值運算子未受約束 | 已受約束 |
[編輯] 參閱
構造一個新的 move_iterator (public member function) |