+ 2

What is the scope of template life in a program?

23rd Nov 2016, 3:31 AM
sadiya zainab
sadiya zainab - avatar
2 Respostas
+ 2
what is the scope of template life?
25th Nov 2016, 8:45 AM
sadiya zainab
sadiya zainab - avatar
+ 1
templates are a great blessing, I would say. it works on generic types. earlier if we had to implement a algorithm , just as in C ,we had to write separate codes for separate genres! now using template library ,we work with iterators and containers. for eg in order to sort an array we can directly use sort(left iter ,right iter) regardless of writing the entire code. it makes the code look good and also is devoid of all ambiguity.
24th Nov 2016, 3:47 PM
Pankaj Hazra
Pankaj Hazra - avatar