小编Ben*_*idt的帖子

为什么在C++ 11/14中没有std :: move_if_noexcept对应std :: forward?

我曾经看过斯科特迈尔斯上GoingNative2013谈话'的有效C++ 11月14日采样器’,并解释说,他使用的std::move_if_noexcept.

所以我认为还应该std::forward_if_noexcept保证例外安全forward吗?为什么标准库中没有这样的内容?还有其他可能保证吗?

c++ noexcept perfect-forwarding c++11

12
推荐指数
1
解决办法
649
查看次数

标签 统计

c++ ×1

c++11 ×1

noexcept ×1

perfect-forwarding ×1