命名空间
变体
操作

std::indirectly_movable_storable

来自 cppreference.cn
< cpp‎ | iterator
 
 
迭代器库
迭代器概念
迭代器原语
算法概念和工具
间接可调用概念
通用算法要求
indirectly_movable_storable
(C++20)
(C++20)
(C++20)
(C++20)
工具
(C++20)
迭代器适配器
范围访问
(C++11)(C++14)
(C++14)(C++14)  
(C++11)(C++14)
(C++14)(C++14)  
(C++17)(C++20)
(C++17)
(C++17)
 
定义于头文件 <iterator>
template< class In, class Out >

concept indirectly_movable_storable =
    std::indirectly_movable<In, Out> &&
    std::indirectly_writable<Out, std::iter_value_t<In>> &&
    std::movable<std::iter_value_t<In>> &&
    std::constructible_from<std::iter_value_t<In>, std::iter_rvalue_reference_t<In>> &&

    std::assignable_from<std::iter_value_t<In>&, std::iter_rvalue_reference_t<In>>;
(自 C++20)

indirectly_movable_storable 概念指定了 indirectly_readable 类型和 indirectly_writable 类型之间的关系。除了 indirectly_movable 之外,此概念还指定了从 indirectly_readable 类型的移动可以通过中间对象执行。

[编辑] 语义要求

当且仅当给定类型 In 的可解引用值 i 时,InOut 建模 std::indirectly_movable_storable<In, Out>

[编辑] 相等性保持

标准库概念的 requires 表达式 中声明的表达式需要是 保持相等性 的(除非另有说明)。

[编辑] 参见

指定值可以从 indirectly_readable 类型移动到 indirectly_writable 类型
(概念) [编辑]
指定值可以从 indirectly_readable 类型复制到 indirectly_writable 类型,并且复制可以通过中间对象执行
(概念) [编辑]