Practical C++17 - Jason Turner - Meeting C++ 2017

preview_player
Показать описание
C++17 adds many new features: structured bindings, deduction guides, if-init expressions, fold expressions, if constexpr and enhanced constexpr support in the standard library. Each of these features are interesting, but what will be their cumulative affect on real code? We'll explore how each feature may (or may not) help in real code for enhanced readability, compile time performance and runtime performance
Рекомендации по теме
Комментарии
Автор

There is no string_view(char (&array)[size]) overload because it could be passed an array with 0's inside and then strlen(array) would give something smaller than size-1. That would produce wrong results

pazdziochowaty
Автор

Looks like the comparison of "noexcept case" is dishonest. There is the requirement to save compilation with C++14-compatible compilers, so, the code size vastly increased to deal with both standards. But there is no the same requirement for other features.

"noexcept case" is supposed to get a bit higher score :)

ИванАфанасьев-гм
Автор

They forgot string_view::starts_with() in C++17!

iddn