Город МОСКОВСКИЙ
01:09:34

CppCon 2014: Scott Meyers "Type Deduction and Why You Care"

Аватар
CppVault
Просмотры:
37
Дата загрузки:
22.08.2024 20:58
Длительность:
01:09:34
Категория:
Технологии и интернет

Описание

#cpp #cppcon

3:45 C++ Type Deduction Landscape
12:08 Reference/Pointer Parameters
13:20 const Reference/Pointer Parameters
16:55 "Universal References"
21:25 By-Value Parameters
29:19 auto Type Deduction
38:14 Lambda Type Deduction
43:27 Observing Deduced Types
51:25 decltype Type Deduction
57:56 Function Return Type Deduction

CppCon 2014: Scott Meyers "Type Deduction and Why You Care"
https://github.com/CppCon/CppCon2014
https://www.youtube.com/watch?v=wQxj20X-tIU

C++98 had template type deduction, and it worked so intuitively, there was little need to understand what took place under the covers. C++11 extends type deduction to include universal references, applies it to auto variables and lambda expressions, then throws in a special auto-only deduction rule. C++14 pushes the boundary further, adding two forms of function return type deduction (auto and decltype(auto)) for arbitrary functions and offering auto parameters for lambdas. The result is that what could be treated as a black box in C++98 has become a topic that practicing C++ developers really need to understand. This talk will give you the information you need to do that.
--
Scott Meyers has been working with C++ since 1988. He recently finished his new book, "Effective Modern C++".

Рекомендуемые видео