The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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