LoginSignup
4
1

More than 3 years have passed since last update.

CppCon 2019

Last updated at Posted at 2019-10-08

はじめに

9月にCppCon 2019がColorado州Auoroで開かれました。
色々おもしろい発表がされていたので、簡単に紹介します。
他にも面白い発表が見つかったら随時追加します。

CppCon 2019

RVO and In-Place Construction

Ben Deane “Everyday Efficiency: In-Place Construction (Back to Basics?)”

  • RVOできるのってどんなとき?
  • In-Place Constructionするには?

Zero-cost Abstraction

Chandler Carruth “There Are No Zero-cost Abstractions”

  • 抽象化には必ず何かしらのコストが支払われる(ゼロコスト抽象化の否定)
  • std::unique_ptrは生ポインタと比べてパフォーマンスがほんの少し低い

Exceptions and RTTI

Herb Sutter “De-fragmenting C++: Making Exceptions and RTTI More Affordable and Usable”

  • スタックメモリを使用したRTTIを使わない例外の提案
  • Static reflectionを使いコンパイル時に型情報を評価(type_infoが不要となる)
  • RTTIを使わない省メモリなdown-castの提案
4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1