Namespaces
Variants
Actions

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

From cppreference.com
< cpp‎ | named req
 
C++
 
C++ named requirements
 

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

[edit] Requirements

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

[edit] 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) [edit]
obtains the type of the elements of pair
(class template specialization) [edit]
obtains the type of the elements of array
(class template specialization) [edit]
obtains the type of the alternative specified by its index, at compile time
(class template) (alias template)[edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant