Export (0) Print
Expand All

time_point_cast Function

Casts a time_point object to a specified type.

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

A time_point object that has a duration of type To.

Unless To is an instantiation of duration, this function does not participate in overload resolution.

Header: chrono

Namespace: std::chrono

Show:
© 2014 Microsoft