what is the advantage of using document template..
Answers
Answered by
9
You can use templates to:
1.Create a typesafe collection class (for example, a stack) that can operate on data of any type.
2.Add extra type checking for functions that would otherwise take void pointers.
3.Encapsulate groups of operator overrides to modify type behavior (such as smart pointers).
4.Templates are easier to write. You create only one generic version of your class or function instead of manually creating specializations.
5.Templates can be easier to understand, since they can provide a straightforward way of abstracting type information.
6.Templates are typesafe. Because the types that templates act upon are known at compile time, the compiler can perform type checking before errors occur.
1.Create a typesafe collection class (for example, a stack) that can operate on data of any type.
2.Add extra type checking for functions that would otherwise take void pointers.
3.Encapsulate groups of operator overrides to modify type behavior (such as smart pointers).
4.Templates are easier to write. You create only one generic version of your class or function instead of manually creating specializations.
5.Templates can be easier to understand, since they can provide a straightforward way of abstracting type information.
6.Templates are typesafe. Because the types that templates act upon are known at compile time, the compiler can perform type checking before errors occur.
AJAYMAHICH:
hello
Answered by
3
Answer: plz mark as Brainlist
Explanation:The main advantage is that templates significantly simplify the generation of good company documentation, which allows you to invest valuable time in the content and review of these documents. Templates are the skeletons which constitute the basis of your documentation.
Similar questions