オペレータ演算子 (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 の長さである分割期間のオブジェクトを返します。
2 番目の演算子は Left と Rightの間隔の比率を返します。
is_convertible<Rep2, common_type<Rep1, Rep2>>が保持されますが Rep2 が durationのインスタンス化である、最初の演算子は、オーバーロードの解決に含められません。詳細については、「<type_traits>」を参照してください。
必要条件
クロノヘッダー:
名前空間: の std::chrono