time_point_cast功能

转换为特定类型的一 time_point 对象。

template<class To, class Clock, class Duration>
    time_point<Clock, To> time_point_cast(
        const time_point<Clock, Duration>& Tp
    );

返回值

具有类型 To的持续时间的 time_point 对象。

备注

除非 To 是 持续时间的实例化,此功能不参与重载决策。

要求

慢性的标头:

命名空间: std::chrono

请参见

参考

<chrono>

其他资源

标头文件