Scroll to navigation

std::common_type(std::chrono::time_point)(3) C++ Standard Libary std::common_type(std::chrono::time_point)(3)

NAME

std::common_type(std::chrono::time_point) - std::common_type(std::chrono::time_point)

Synopsis


template <class Clock, class Duration1, class Duration2>


struct common_type<std::chrono::time_point<Clock, Duration1>,
std::chrono::time_point<Clock, Duration2>> { (since C++11)
typedef std::chrono::time_point<
Clock, typename std::common_type<Duration1, Duration2>::type> type;


};


Exposes the type named type, which is the common type of two
std::chrono::time_points.

Notes


The common type of two std::chrono::time_point types is a std::chrono::time_point
with the same clock as the two types and the std::common_type of their durations.

Example


This section is incomplete
Reason: no example

See also


std::common_type<std::chrono::duration> specializes the std::common_type trait
(C++11) (class template specialization)
common_type determines the common type of a group of
(C++11) types
(class template)

2022.07.31 http://cppreference.com