Рет қаралды 26,001
cppcon.org/
---
A Journey Into Non-Virtual Polymorphism addressing std::any, std::variant and visit, std::tuple and apply, and CRTP. - Rudyard Merriam - CppCon 2023
github.com/CppCon/CppCon2023
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.
Rud wrote his first FORTRAN IV in 1968 and his first C++ in 1990 with Borland's Turbo C++. During his career, he worked mainly with embedded systems, with one system measuring the flow in real pipelines. Since retirement, he has used C++ with multiple NASA Centennial Challenges of robotics on Mars and the Moon. He sporadically writes about C++ on Medium.com.
---
Videos Filmed & Edited by Bash Films: www.BashFilms.com
KZbin Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---
Registration for CppCon: cppcon.org/registration/
#cppcon #cppprogramming #cpp