Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1023 Bytes

File metadata and controls

38 lines (29 loc) · 1023 Bytes
description Learn more about: common_type Structure
title common_type Structure
ms.date 11/04/2016
f1_keywords
std::common_type
helpviewer_keywords
std [C++], common_type
dev_langs
C++

common_type Structure

Describes specializations of class template 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

See also

<chrono>
Header Files Reference