Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

C++ named requirements: TransformationTrait (since C++11)

A TransformationTrait is a class template that provides a transformation of its template type parameter.

NotebookLM

A TransformationTrait is a class template that provides a transformation of its template type parameter.

Requirements

  • Takes one template type parameter (additional template parameters are optional and allowed).
  • The transformed type is a publicly accessible nested type named type.

Standard library

All type transformation traits satisfy TransformationTrait.

The following standard library class templates also satisfy TransformationTrait.

obtains the type of the specified element
(class template specialization)
obtains the type of the elements of pair
(class template specialization)
obtains the type of the elements of array
(class template specialization)
obtains the type of the alternative specified by its index, at compile time
(class template) (alias template)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.