Загрузка страницы

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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
16 марта 2021 г. 2:47:01
00:21:11
Яндекс.Метрика