оператор operator+ (STL)
Добавляет длительность и объекты time_point.
template<class Rep1, class Period1, class Rep2, class Period2>
constexpr typename common_type<duration<Rep1, Period1>,
duration<Rep2, Period2> >::type
operator+(const duration<Rep1, Period1>& Left,
const duration<Rep2, Period2>& Right);
template<class Clock, class Duration1, class Rep2, class Period2>
constexpr time_point<Clock,
typename common_type<Duration1, duration<Rep2, Period2> >::type>
operator+(const time_point<Clock, Duration1>& Time,
const duration<Rep2, Period2>& Dur);
template<class Rep1, class Period1, class Clock, class Duration2>
time_point<Clock,
typename common_type<duration<Rep1, Period1>, Duration2>::type>
operator+(const duration<Rep1, Period1>& Dur,
const time_point<Clock, Duration2>& Time);
Параметры
Left
Левые duration или объект time_point.Right
Правое duration или объект time_point.Time
Объект time_point.Dur
Объект duration.
Возвращаемое значение
Первая функция возвращает объект duration, который содержит интервал времени, равный сумме интервалов Left и Right.
Второе и третье функции возвращают объект time_point, который представляет момент времени, смещен, интервалом Dur от момента времени Time.
Требования
заголовок: chrono
Std::chrono пространство имен: