"Compile time polymorphism" used to signify function overloading.
It only applies to functions because that's all you can overload.
Templates in modern C++ modify this.
One example has previously been provided by Neil Butterworth.
Another technique is template specialisation.
As an example:
#include <iostream>
#include <string>
template <class T>
struct my_template { ...READ MORE
Jun 20, 2022
in C++
by
Damon
• 4,960 points
•
665 views