MCQs
inside that block only
The compiler does not generate definitions for functions, non virtual member functions, class or member class because it does not require instantiation.
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.
In the template specialization, it will make the template to be specific for some data types.
It is used to adapt a policy into binary ones.
Because of template type parameters, It will work with many types and saves a lot of time.
Non-type template parameters provide the ability to pass a constant expression at compile time. The constant expression may also be an address of a function, object or static class member.
A template parameter is a special kind of parameter that can be used to pass a type as argument.
a or b
both a & b