Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::common_type<tuple-like>

      From cppreference.com
      <cpp‎ |utility‎ |tuple
       
       
      Utilities library
       
       
      Defined in header<tuple>
      template< tuple-like TTuple, tuple-like UTuple>

          requires/* see below */

      struct common_type<TTuple, UTuple>;
      (since C++23)

      The common type of twotuple-like types is astd::tuple consists of the common types of all corresponding element type pairs of both types.

      Given

      the following constraints need to be satisfied:

      [edit]Member types

      Member type Definition
      typestd::tuple<std::common_type_t<TTypes, UTypes>...>

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      determines the common type of a group of types
      (class template)[edit]
      determines the common type of twopairs
      (class template specialization)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/utility/tuple/common_type&oldid=151996"

      [8]ページ先頭

      ©2009-2025 Movatter.jp