Skip to content

calendar.h ~ calendar ~ plus

Baptiste Thémine edited this page Aug 11, 2020 · 1 revision
constexpr clock_type plus(const clock_type &left, const clock_type &right) noexcept;
constexpr clock_type plus(const datetime_type &left, const datetime_type &right) noexcept;

Description

Sum operation on clock_type and datetime_type.

Parameters

(Mandatory)

  • left
  • rigth

Return value

If left and right can be summed without overflow, then returns left+right else returns CLOCK_NAN. If left and right are datetime_type, then calendar constraints are taken into account.

Exceptions

Never throws exception.

See also

Clone this wiki locally