filmov
tv
A Journey Into Non-Virtual Polymorphism in C++ - Rudyard Merriam - CppCon 2023
Показать описание
---
A Journey Into Non-Virtual Polymorphism addressing std::any, std::variant and visit, std::tuple and apply, and CRTP. - Rudyard Merriam - CppCon 2023
Join me on an introductory journey into polymorphism that doesn't use class inheritance and virtual functions. I'll share my amazement at how polymorphism permeates C++. Then we'll visit the long-used Curiously Recurring Template Pattern (CRTP) with its modernization using implicit this.
Do you like lambdas? So does the override pattern, which uses them to handle std::tuples and std::variants with std::apply and std::visit.
Want to walk through a container of disparate types invoking their functions? You'll see this and all the above in code examples galore.
Afterward, you'll be eager to learn more on your own!
---
Rudyard Merriam
Rud Merriam is a retired software developer, having lived through the spaghetti, structured programming, and object-oriented development paradigms. He's trying to figure out functional programming and keep up with the latest C++ standards.
---
---
#cppcon #cppprogramming #cpp
A Journey Into Non-Virtual Polymorphism addressing std::any, std::variant and visit, std::tuple and apply, and CRTP. - Rudyard Merriam - CppCon 2023
Join me on an introductory journey into polymorphism that doesn't use class inheritance and virtual functions. I'll share my amazement at how polymorphism permeates C++. Then we'll visit the long-used Curiously Recurring Template Pattern (CRTP) with its modernization using implicit this.
Do you like lambdas? So does the override pattern, which uses them to handle std::tuples and std::variants with std::apply and std::visit.
Want to walk through a container of disparate types invoking their functions? You'll see this and all the above in code examples galore.
Afterward, you'll be eager to learn more on your own!
---
Rudyard Merriam
Rud Merriam is a retired software developer, having lived through the spaghetti, structured programming, and object-oriented development paradigms. He's trying to figure out functional programming and keep up with the latest C++ standards.
---
---
#cppcon #cppprogramming #cpp
Комментарии