GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::common_type(3) C++ Standard Libary std::common_type(3)

std::common_type - std::common_type


Defined in header <utility>
template< class T1, class T2, class U1, class U2 >


requires requires { typename std::pair<std::common_type_t<T1, U1>, (since C++23)
std::common_type_t<T2, U2>>; }


struct common_type<std::pair<T1, T2>, std::pair<U1, U2>>;


The common type of two pairs is a pair of both common types of corresponding element
types of both pairs.


The common type is defined only if both pairs of corresponding element types have
common types.


Member type Definition
type std::pair<std::common_type_t<T1, U1>, std::common_type_t<T2, U2>>


This section is incomplete
Reason: no example


common_type determines the common type of a group of types
(C++11) (class template)
std::common_type<tuple-like> determines the common type of a tuple and a tuple-like
(C++23) type
(class template specialization)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.