abseil / abseil/abseil.github.io

Update previous tips to reflect guaranteed copy elision in C++17

未关闭
#483 0 条评论 0 个 reaction 已指派 1 人 已被 @derekmauro 认领 在 GitHub 查看
主要语言
HTML
星标
169
派生
124
PR 合并指标
30 天内没有已合并 PR

描述

Many early tips talk about RVO, copy elision etc., but make no mention of C++17. As a result, they often say things like, "Strictly speaking the compiler is not required to perform copy elision".

Now that [C++17 guarantees copy elision in certain situations](https://en.cppreference.com/w/cpp/language/copy_elision), a note can be added to the tips similar to the one given for number 11. It can tell readers to refer to number 166.

These are the tips which I found mention copy elision and were made before C++17:
1. Number [11](https://abseil.io/tips/11)
2. Number [24](https://abseil.io/tips/24)
3. Number [77](https://abseil.io/tips/77)
4. Number [101](https://abseil.io/tips/101)
5. Number [117](https://abseil.io/tips/117)
6. Number [120](https://abseil.io/tips/120)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。