About Templates | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
- 6

About Templates

Template functions are great! but suddenly, that removes the strict side of language, and then here too, it was not thought for the simplest! the best would have been to consider that an argument was a T when it was not specified! (a, b) is simply type T and does not generate a compilation error.

15th Jul 2020, 12:58 PM
Alain Mazy
Alain Mazy - avatar
1 Respuesta
15th Jul 2020, 1:01 PM
Ćheyat
Ćheyat - avatar