visual C++标准是否要求自己的迭代器是另一个可移动/可复制的
visual Does the C++ standard require its own iterators to be nothrow move/copy constructable?
在MSVC中,类型trait std::is_nothrow_move_constructible在发布版本中对于迭代器(至少对于map、set和vector)为true,但在调试版本中不为true。
标准库的迭代器类别都没有这种性质的特殊要求。所有迭代器都要求是CopyConstructable,但没有迭代器要求非抛出移动可构造。
相关文章:
- 程序在使用 system() 启动另一个可执行文件时停止
- 如果需要转换,我可以在读取参数的同时将其移动到另一个参数吗?
- 将 std::array 移动到另一个 std::array
- 如何在不复制的情况下将一个向量移动到另一个向量中
- 为什么在 std::map 上移动无法将元素从一个映射移动到另一个映射
- 如何将所有指针从一个向量移动到另一个向量?
- C:试图将指针值复制到另一个指针中,得到可修改的左值错误
- 如何有效地将(一些)项目从一个std::map移动到另一个std::map
- 如何将"this"的生命周期移动到C++中的另一个对象中?
- 基于范围的 for 循环将对象移动到另一个容器中?
- 如何在 ubuntu 上将可执行文件注入另一个可执行文件
- 程序如何创建另一个可执行文件
- 我可以将一个可执行文件与另一个可执行文件(Windows 服务程序)组合在一起,并将该程序作为逻辑服务运行吗?
- 创建一个调用另一个可执行文件的可执行文件
- visual C++标准是否要求自己的迭代器是另一个可移动/可复制的
- 子弹物理 - 如何根据另一个对象移动身体
- 将控制权从一个可执行文件传递到另一个可执行文件C++
- 这是turbo c++的另一个可选编译器
- Qt:限制QGraphicsItem在另一个QGraphicsItem中的可移动区域
- 在我的Qt应用中运行另一个可执行文件