Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

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

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

      ABinaryTypeTrait is a class template that describes a relationship between its two template type parameters with astd::integral_constant (typicallystd::bool_constant) specialization.

      [edit]Requirements

      • DefaultConstructible andCopyConstructible.
      • Takes two template type parameters (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 following standard library class templates satisfyBinaryTypeTrait:

      (C++11)
      checks if two types are the same
      (class template)[edit]
      (C++11)
      checks if a type is a base of the other type
      (class template)[edit]
      checks if a type is a virtual base of the other type
      (class template)[edit]
      checks if a type can be converted to the other type
      (class template)[edit]
      checks if two types arelayout-compatible
      (class template)[edit]
      checks if a type is apointer-interconvertible (initial) base of another type
      (class template)[edit]
      checks if a type can be invoked (as if bystd::invoke) with the given argument types
      (class template)[edit]
      checks if the specified type supports uses-allocator construction
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/named_req/BinaryTypeTrait&oldid=175499"

      [8]ページ先頭

      ©2009-2025 Movatter.jp