Passing Callbacks to Functions in C++ (1 of N)
I this video I explain everything that you can invoke in C++.
In this series of videos I am going to explain the issues involved in passing callables as function parameters, discuss a solution provided in a blog by Philippe M. Groarke, explain its short comings, provide alternatives and discuss differences between these solutions.
Link to Philippe M. Groarke's blog: https://philippegroarke.com/posts/2021/enforcing_signatures_on_templated_callbacks/
The code is compiled on: https://godbolt.org/
0:00 Intro
0:37 Blog's Idea
2:30 Functions
3:45 Function Pointers
5:28 Function References
6:20 Function Signature
7:00 Callable Objects
8:30 Invocation Operator Overloads
12:00 Pointer to Member Functions
15:10 Lambdas
15:50 Reasons to Pass Callbacks
18:10 Different Ways Callbacks Are Used
20:14 Conclusion
Видео Passing Callbacks to Functions in C++ (1 of N) канала Psychotherapeutic Programming
In this series of videos I am going to explain the issues involved in passing callables as function parameters, discuss a solution provided in a blog by Philippe M. Groarke, explain its short comings, provide alternatives and discuss differences between these solutions.
Link to Philippe M. Groarke's blog: https://philippegroarke.com/posts/2021/enforcing_signatures_on_templated_callbacks/
The code is compiled on: https://godbolt.org/
0:00 Intro
0:37 Blog's Idea
2:30 Functions
3:45 Function Pointers
5:28 Function References
6:20 Function Signature
7:00 Callable Objects
8:30 Invocation Operator Overloads
12:00 Pointer to Member Functions
15:10 Lambdas
15:50 Reasons to Pass Callbacks
18:10 Different Ways Callbacks Are Used
20:14 Conclusion
Видео Passing Callbacks to Functions in C++ (1 of N) канала Psychotherapeutic Programming
Показать
Комментарии отсутствуют
Информация о видео
16 марта 2021 г. 2:47:01
00:21:11
Другие видео канала
![Stop doing this to improve your C++ code's performance (C++20 [[no_unique_address]])](https://i.ytimg.com/vi/UqrcybaJw84/default.jpg)
![GI + Fog (Sponza Model)](https://i.ytimg.com/vi/SUwXXqeG93Q/default.jpg)
![The Forge Engine Stream Code Review (#9)](https://i.ytimg.com/vi/8w-Waf0r_GI/default.jpg)
![The Forge Engine Stream Code Review (#1)](https://i.ytimg.com/vi/z0uiPVK_6aQ/default.jpg)
![Zombie AI on zombie character](https://i.ytimg.com/vi/68hCf841sxY/default.jpg)
![My sucky videotape cover](https://i.ytimg.com/vi/BgUPq7SofDE/default.jpg)
![The Forge Engine Stream Code Review (#2)](https://i.ytimg.com/vi/qoDQuyIDmh4/default.jpg)
![The Forge Engine Stream, Writing an example from scratch (#19)](https://i.ytimg.com/vi/L7KHmGBHG0k/default.jpg)
![WoA 2017 day 3 Game play and mechanics](https://i.ytimg.com/vi/1RrtxInVVJ8/default.jpg)
![The Forge Engine Stream Code Review (#4)](https://i.ytimg.com/vi/wAt0CxcLzXo/default.jpg)
![The Forge Engine Stream Code Review (#3)](https://i.ytimg.com/vi/R-9_W3sXiIo/default.jpg)
![The Forge Engine Stream, Writing an example from scratch (#21)](https://i.ytimg.com/vi/4owQGfhLbP0/default.jpg)
![University Project](https://i.ytimg.com/vi/lr5EJBDErLA/default.jpg)
![The Forge Engine Stream, Writing an example from scratch (#22)](https://i.ytimg.com/vi/2IdST6yw8BM/default.jpg)
![The Forge Engine Stream, Writing an example from scratch (#23)](https://i.ytimg.com/vi/MOlQ0Sguc6o/default.jpg)
![Moving from C style code to C++! (1 of N)](https://i.ytimg.com/vi/1er3klYE2AU/default.jpg)
![Volumetric Lighting](https://i.ytimg.com/vi/_1lbyOiuBk8/default.jpg)
![Passing Callbacks to Functions in C++ (2 of N)](https://i.ytimg.com/vi/yq1qhzUEV-I/default.jpg)
![1v5 CS:GO Clutch](https://i.ytimg.com/vi/6Fa_vV4HgeY/default.jpg)
![The Forge Engine Stream, Writing an example from scratch (#12)](https://i.ytimg.com/vi/10pJuz1d9pE/default.jpg)
![The Forge Engine Stream, Writing an example from scratch (#14)](https://i.ytimg.com/vi/LNorbbA_kbI/default.jpg)