Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The latest version of this topic can be found at common_type Structure.
Describes specializations of template class common_type for instantiations of duration and time_point.
Syntax
template <class Rep1, class Period1,
class Rep2, class Period2>
struct common_type
<chrono::duration<Rep1, Period1>,
chrono::duration<Rep2, Period2>>;
template <class Clock,
class Duration1, class Duration2>
struct common_type
<chrono::time_point<Clock, Duration1>,
chrono::time_point<Clock, Duration2>>;
Requirements
Header: chrono
Namespace: std