Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

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

      AUnaryTypeTrait is a class template that describes a property of its template type parameter with anstd::integral_constant (typicallystd::bool_constant) specialization.

      [edit]Requirements

      • DefaultConstructible andCopyConstructible.
      • Takes one template type parameter (additional template parameters are optional and allowed).
      • Publicly and unambiguously derived from a specialization ofstd::integral_constant, known as itsbase characteristic.
      • The member names of thebase characteristic are not hidden and are unambiguously available.

      [edit]Standard library

      The followingtype traits all satisfyUnaryTypeTrait:

      The following standard library class templates also satisfyUnaryTypeTrait.

      compile-time constant of specified type with specified value
      (class template)
      (C++17)
      logical NOT metafunction
      (class template)[edit]
      obtains the size of

      atuple
      (class template specialization)[edit]

      obtains the size of anarray
      (class template specialization)[edit]
      obtains the size of apair
      (class template specialization)[edit]
      obtains the size of thevariant's list of alternatives at compile time
      (class template)(variable template)[edit]
      indicates that an object isstd::bind expression or can be used as one
      (class template)[edit]
      indicates that an object is a standard placeholder or can be used as one
      (class template)[edit]
      test whether a class represents an execution policy
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/named_req/UnaryTypeTrait&oldid=161475"

      [8]ページ先頭

      ©2009-2025 Movatter.jp