are templates hard to understand in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

are templates hard to understand in c++

hard understending

25th May 2018, 6:20 AM
it371
it371 - avatar
2 Answers
+ 7
No.
25th May 2018, 6:43 AM
Hatsy Rei
Hatsy Rei - avatar
0
No, they're quite easy to understand. It's an easy way to create generic functions and classes, meaning that you don't have to strongly type argument and return variables. So int function(); would become T function() ;, which returns any type, basically
21st Jun 2018, 7:58 AM
Atlas