time_point& operator+=(const duration& d);
time_point& operator-=(const duration& d);
static constexpr time_point min();
static constexpr time_point max();
};
STD::CHRONO::TIME_POINT
Конструирует объект time_point
Clock
; внутренний интервал инициализируется значением Duration::zero()
.time_point();
Для сконструированного по умолчанию объекта tp
time_point
имеет место равенство tp.time_since_epoch() == tp::duration::zero()
.STD::CHRONO::TIME_POINT
Конструирует объект time_point
Clock
.explicit time_point(const duration& d);
Для объекта tp
time_point
, созданного конструктором tp(d)
из некоторого интервала d
, имеет место равенство tp.time_since_epoch() == d
.STD::CHRONO::TIME_POINT
Конструирует объект time_point
time_point
с таким же типом Clock
, по другим типом Duration
.template
time_point(const time_point
Для типа Duration2
Duration
.Эквивалентно выражению time_point(t.time_since_epoch())
Значение, возвращенное функцией t.time_since_epoch()
Duration
, который сохраняется в новом объекте типа time_point
.STD::CHRONO::TIME_POINT::TIME_SINCE_EPOCH
Возвращает интервал от эпохи часов для данного объекта типа time_point
duration time_since_epoch() const;
Значение duration
*this
.STD::CHRONO::TIME_POINT::OPERATOR+=
Прибавляет указанный интервал duration
time_point
.time_point& operator+=(const duration& d);
Прибавляет d
*this
, эквивалентно this->internal_duration += d
.*this
STD::CHRONO::TIME_POINT::OPERATOR-=
Вычитает указанный интерфейс duration
time_point
.time_point& operator-=(const duration& d);
Вычитает d
*this
, эквивалентно this->internal_duration -= d
.*this
STD::CHRONO::TIME_POINT::MIN
Получает объект time_point
static constexpr time_point min();
time_point(time_point::duration::min())
STD::CHRONO::TIME_POINT::MAX,
Получает объект time_point
static constexpr time_point max();
time_point(time_point::duration::max())
D.1.3. Класс std::chrono::system_clock