operator< 연산자(STL)
이 기간 또는 time_point 개체는 다른 보다 작은 duration 또는 time_point 개체인지 결정합니다.
template<class Rep1, class Period1, class Rep2, class Period2>
constexpr bool operator< (
const duration<Rep1, Period1>& Left,
const duration<Rep2, Period2>& Right);
template<class Clock, class Duration1, class Duration2>
bool operator< (
const time_point<Clock, Duration1>& Left,
const time_point<Clock, Duration2>& Right);
매개 변수
Left
왼쪽 duration 혹은 time_point 개체입니다.Right
오른쪽 duration 혹은 time_point 개체입니다.
반환 값
만약 Left 의 간격 길이가 Right 의 간격 길이보다 작은 경우, 천 번째 함수는 true 를 반환합니다. 그렇지 않으면 함수가 false를 반환합니다.
두 번째 함수는 true 를 반환하는데, Left 가 Right을 앞서는 경우입니다. 그렇지 않으면 함수가 false를 반환합니다.