Dependent Names
In this lesson, we'll study dependent names.
We'll cover the following
Dependent Names
A dependent name is essentially a name that depends on a template parameter. A dependent name can be a type, a non-type, or a template-template parameter.
If you use a dependent name in a template declaration or template definition, the compiler has no idea, whether this name refers to a type, a non-type, or a template parameter. In this case, the compiler assumes that the dependent name refers to a non-type, which may be wrong.
Let’s have a look at the example of dependent names:
Get hands-on with 1400+ tech skills courses.