+ 2
What is the scope of template life in a program?
2 Antworten
+ 2
what is the scope of template life?
+ 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.