std::indirectly_swappable
来自 cppreference.cn
< 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) |
交换两个可解引用对象所引用的值 (定制点对象) |