# C++ keyword: typename

> C++ Atlas: `cppatlas.com/w/cpp/keywords/typename` | Source: https://en.cppreference.com/w/cpp/keywords/typename | Domain: Keywords | Standards: C++17, C++20

## Official Specification Summary (cppreference)

### Usage

- In the template parameter list of a template declaration, `typename` can be used as an alternative to class to declare type template parameters and template template parameters (since C++17).
- Inside a declaration or a definition of a template, `typename` can be used to declare that a dependent qualified name is a type.
- `typename` can be used before a non-dependent qualified type name. It has no effect in this case.

(since C++20):

- Inside a requirements for type requirements

### See also

- [`class`](https://en.cppreference.com/w/cpp/keyword/class)
- [`template`](https://en.cppreference.com/w/cpp/keyword/template)

(since C++20):

- [`concept`](https://en.cppreference.com/w/cpp/keyword/concept), [`requires`](https://en.cppreference.com/w/cpp/keyword/requires)

---
Attribution: content from https://en.cppreference.com/w/cpp/keywords/typename (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.