operator- 연산자(STL)
이 duration 및 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 Clock, class Duration1, class Duration2>
typename common_type<Duration1, Duration2>::type
operator-(
const time_point<Clock, Duration1>& Left,
const time_point<Clock, Duration2>& Right);
매개 변수
Left
왼쪽 duration 혹은 time_point 개체입니다.Right
오른쪽 duration 혹은 time_point 개체입니다.Time
time_point 개체Dur
duration 개체
반환 값
첫 번째 함수는 길이 간격인 두 인수의 시간 간격 사이의 다른 것의 duration 개체를 반환합니다.
두 번째 함수는 Time 의 지정된 시간의 꼭짓점으로 부터, Dur으로 표현된 시간 간격의 부정으로써, 추방된 시간의 꼭짓점을 표현한 time_point 개체를 반환합니다.
세 번째 함수는 Left 과 Right 사이의 시간 간격의 표현인 duration 개체를 반환합니다.
요구 사항
Header: chrono
네임 스페이스: std::chrono