Templates
- Which parameter is legal for non-type template?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The following are legal for non-type template parameters:integral or enumeration type, Pointer to object or pointer to function, Reference to object or reference to function, Pointer to member.
- Why we use :: template-template parameter?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
It is used to adapt a policy into binary ones.
- What is the validity of template parameters?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
inside that block only
- Which keyword can be used in template?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
both class & typename
- Which are done by compiler for templates?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The compiler can determine at compile time whether the type associated with a template definition can perform all of the functions required by that template definition.