Let's prove that function template is compile time polymorphism without executing the code
Автор: E-GRASP
Загружено: 2023-04-09
Просмотров: 189
Описание:
In lot of places you might have heard about function template exhibits a compile time polymorphic behavior, But in all the examples it is proved by executing the output. But how can we confirm or believe that it is happening at compile time?
In this video I gonna demonstrate you how compiler generates the multiple definitions of the same function during template instantiation without even executing the code. Also I gonna cover bit on weak symbols (a technique which is used by the compiler to avoid the multiple definitions) and which avoids the generation of the multiple definition even though we called the same function n number of times.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: