std::chrono::clock_time_conversion

Header: <chrono>

std::chrono::clock_time_conversion is a trait that specifies how to convert a std::chrono::time_point of the Source clock to that of the Dest clock. It does so by providing a const-callable operator() that accepts an argument of type std::chrono::time_point<Source, Duration> and returns a std::chrono::time_point<Dest, OtherDuration> that represents an equivalent point in time. The duration of the returned time point is computed from the source duration in a manner that varies for each specialization. clock_time_conversion is normally only used indirectly, via std::chrono::clock_cast.

# Declarations

template< class Dest, class Source >
struct clock_time_conversion {};

(since C++20)

# Parameters

# Return value

The result of the conversion as described above:

# See also