Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

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

      ATransformationTrait 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 namedtype.

      [edit]Standard library

      Alltype transformation traits satisfyTransformationTrait.

      The following standard library class templates also satisfyTransformationTrait.

      obtains the type of the specified element
      (class template specialization)[edit]
      obtains the type of the elements ofpair
      (class template specialization)[edit]
      obtains the type of the elements ofarray
      (class template specialization)[edit]
      obtains the type of the alternative specified by its index, at compile time
      (class template)(alias template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/named_req/TransformationTrait&oldid=170433"

      [8]ページ先頭

      ©2009-2025 Movatter.jp