다음을 통해 공유


연산자 * 연산자 (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& Mult);
template<class Rep1, class Rep2, class Period2>
   constexpr duration<typename common_type<Rep1, Rep2>::type, Period2>
   operator*(const Rep1& Mult, const duration<Rep2, Period2>& Dur);

매개 변수

  • Dur
    duration 개체

  • Mult
    정수 값입니다.

반환 값

각 함수 반환은 duration 간격 길이가 개체 Mult 으로 길이를 곱한 값 Dur.

하지 않는 한 is_convertible<Rep2, common_type<Rep1, Rep2>>마찬가지, 첫 번째 함수 오버 로드 확인에 참여 하지 않습니다.자세한 내용은 sssee <type_traits>.

하지 않는 한 is_convertible<Rep1, common_type<Rep1, Rep2>>마찬가지, 두 번째 함수 오버 로드 확인에 참여 하지 않습니다.자세한 내용은 <type_traits>를 참조하십시오.

요구 사항

헤더: chrono

네임 스페이스: std::chrono

참고 항목

참조

<chrono>

기타 리소스

헤더 파일