~/talk

C++17 Features (part 1 of 2)

Talkat CppCon 2017 · 2017-09-24..09-29· [compilers-and-language-design]
slides:none on file

C++17 consolidates practical language changes: structured bindings let auto [x,y] = point3 to name members (and work with tuples/arrays); selection statements with initializers allow if (auto it = m.find(k); it!=m.end()) scoping; if constexpr enables compile-time branches and replaces some SFINAE/tag dispatch; fold expressions collapse variadic recursion into single operators; class template argument deduction plus deduction guides infer template types; inline variables fix ODR for header constants; guaranteed copy elision makes certain returns legal; constexpr lambdas and unary static_assert simplify metaprogramming.

AI-written summary · about

  1. 0:00Introduction to C++17
  2. 1:09Structured bindings explained
  3. 5:51If with initializers
  4. 10:54If constexpr feature
  5. 18:42Fold expressions in C++17
  6. 25:35Class template argument deduction
  7. 31:25Auto non-type template parameters
  8. 35:29Inline variables in C++17
  9. 37:18Constexpr lambdas
  10. 41:09Static assert improvements
  11. 42:14Mandatory RVO
  12. 43:38Nested namespaces
  13. 44:01Has include preprocessor
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.