operator/ 연산자(STL)
이 기간 개채에 대한 시간을 나눕니다.
template<class Rep1, class Period1, class Rep2>
constexpr duration<typename common_type<Rep1, Rep2>::type, Period1>
operator/(
const duration<Rep1, Period1>& Dur,
const Rep2& Div);
template<class Rep1, class Period1, class Rep2, class Period2>
constexpr typename common_type<Rep1, Rep2>::type
operator/(
const duration<Rep1, Period1>& Left,
const duration<Rep2, Period2>& Right);
매개 변수
Dur
duration 개체Div
정수 값입니다.Left
왼쪽 duration 개체입니다.Right
오른쪽 duration 개체입니다.
반환 값
첫 번째 동작은 길이 간격이 Div 값의로 나누어진 Dur 의 길이인 기간 개체를 반환합니다.
두 번째 동작은 Left 과 Right 의 길이 간격의 비율을 반환합니다.
이 is_convertible<Rep2, common_type<Rep1, Rep2>> holds true, 및 Rep2 가 duration 의 인스턴스화를 하지 않는 경우, 첫 번째 동작은 오버 로드 결정에 참여하지 않습니다. 자세한 내용은 <type_traits>을 참조하십시오.
요구 사항
Header: chrono
네임 스페이스: std::chrono