다음을 통해 공유


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& 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
    정수 값입니다.

반환 값

각 함수는 Dur 의 길이를 곱한 Mult 인 내부 길이의 duration 개체를 반환합니다.

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

이 is_convertible<Rep1, common_type<Rep1, Rep2>> holds true하지 않으면, 두 번째 함수는 오버 로드에 참여하지 않습니다. 자세한 내용은 <type_traits>을 참조하십시오.

요구 사항

Header: chrono

네임 스페이스: std::chrono

참고 항목

참조

<chrono>

기타 리소스

C++ 표준 라이브러리 헤더 파일