operator+, operator-(std::time_point)
(1) | ||
template< class C, class D1, class R2, class P2 > time_point<C, typename std::common_type<D1, duration<R2,P2>>::type> |
(since C++11) (until C++14) |
|
template< class C, class D1, class R2, class P2 > constexpr time_point<C, typename std::common_type<D1, duration<R2,P2>>::type> |
(since C++14) | |
(2) | ||
template< class R1, class P1, class C, class D2 > time_point<C, typename std::common_type<duration<R1,P1>,D2>::type> |
(since C++11) (until C++14) |
|
template< class R1, class P1, class C, class D2 > constexpr time_point<C, typename std::common_type<duration<R1,P1>,D2>::type> |
(since C++14) | |
(3) | ||
template< class C, class D1, class R2, class P2 > time_point<C, typename std::common_type<D1, duration<R2,P2>>::type> |
(since C++11) (until C++14) |
|
template< class C, class D1, class R2, class P2 > constexpr time_point<C, typename std::common_type<D1, duration<R2,P2>>::type> |
(since C++14) | |
(4) | ||
template< class C, class D1, class D2 > typename std::common_type<D1,D2>::type |
(since C++11) (until C++14) |
|
template< class C, class D1, class D2 > constexpr typename std::common_type<D1,D2>::type |
(since C++14) | |
Performs add and subtract operations involving a time_point
.
d
to pt
. Effectively pt += dur is performed.d
to pt
in negative direction. Effectively pt += (-dur) is performed.pt_lhs
and pt_rhs
.Contents |
[edit] Parameters
pt | - | a time point to apply the offset to |
d | - | a time offset |
pt_lhs, pt_rhs | - | time points to extract difference from |
[edit] Return value
d
.[edit] Exceptions
(none)
[edit] See also
modifies the time point by the given duration (public member function) |