About 68 results
Open links in new tab
  1. Member templates - cppreference.net

    Dec 29, 2023 · Partial specializations of member template may appear both at class scope and at enclosing namespace scope. Explicit specializations may appear in any scope in which the primary …

  2. Templates - cppreference.net

    Apr 30, 2025 · Templates are parameterized by one or more template parameters , of three kinds: type template parameters, constant template parameters, and template template parameters.

  3. Class template - cppreference.net

    Apr 16, 2025 · In order for any code to appear, a template must be instantiated: the template arguments must be provided so that the compiler can generate an actual class (or function, from a function …

  4. Template arguments - cppreference.net

    Apr 26, 2025 · In order for a template to be instantiated, every template parameter must be replaced by a corresponding template argument. The arguments are either explicitly provided, deduced or defaulted.

  5. Template argument deduction - cppreference.net

    Apr 16, 2025 · This mechanism makes it possible to use template operators, since there is no syntax to specify template arguments for an operator other than by re-writing it as a function call expression:

  6. Function template - cppreference.net

    Apr 16, 2025 · When all template arguments have been specified, deduced or obtained from default template arguments, every use of a template parameter in the function parameter list is replaced with …

  7. Template parameters - cppreference.net

    Array and function types may be written in a template declaration, but they are automatically replaced by pointer to object and pointer to function as appropriate.

  8. Explicit (full) template specialization - cppreference.net

    A member or a member template of a class template may be explicitly specialized for a given implicit instantiation of the class template, even if the member or member template is defined in the class …

  9. Variable template (since C++14) - cppreference.net

    Apr 16, 2025 · When used at class scope, variable template declares a static data member template.

  10. C++ keyword: template - cppreference.net

    Sep 1, 2024 · Usage Declaration of a template Inside a template definition, template can be used to declare that a dependent name is a template. See also class , typename