##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# C++ keywords: typename

From cppreference.com
< cpp‎ | keyword

### [edit] Usage

- In a class template or function template, typename can be used as an alternative to class to declare templated types.
- Inside a template definition, typename can be used to declare that a dependent name is a type.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/keyword/typename&oldid=44755"