Spec-Zone.ru › C++

C++ keyword: typename

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.
  • Inside a requirements for type requirements
(since C++20)

See also

  • class
  • template
  • concept, requires
(since C++20)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/keywords/typename

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API