std::indirectly_swappable
來自 cppreference.com
< cpp | 迭代器 (iterator)
| 定義於標頭檔案 <iterator> |
||
| template< class I1, class I2 = I1 > concept indirectly_swappable = |
(C++20 起) | |
概念 indirectly_swappable 指定了兩種分別建模 std::indirectly_readable 的型別之間的關係,其中它們所引用的型別可以交換。
[編輯] 語義要求
I1 和 I2 僅當它們所包含的所有概念都被建模時,才建模 indirectly_swappable。
[編輯] 等價性保留
標準庫概念的 requires 表示式 中宣告的表示式要求是 等價性保留 的(除非另有說明)。
[編輯] 參閱
| (C++20) |
透過應用運算子*指定型別是間接可讀的(概念) |
| (C++20) |
交換兩個可解引用物件所引用的值 (定製點物件) |