operator== 연산자(STL)
두 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를 반환합니다.
이 Left 와 Right 이 동일한 시간에 나타니는 경우에, 두 번째 함수는 true 를 반환합니다. 그렇지 않으면 함수가 false를 반환합니다.
요구 사항
Header: chrono
네임 스페이스: std::chrono