Namensräume
Varianten
Aktionen

std::chrono::time_point_cast

Aus cppreference.com
< cpp‎ | chrono‎ | time point

 
 
 
 
std::chrono::time_point
Member-Funktionen
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
time_point::time_point
time_point::time_since_epoch
time_point::operator+
time_point::operator-
time_point::min
time_point::max
Non-Member-Funktionen
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
common_type
operator+
operator-
operator==
operator!=
operator<
operator<=
operator>
operator>=
time_point_cast
 
template <class ToDuration, class Clock, class Duration>
time_point<Clock, ToDuration> time_point_cast(const time_point<Clock, Duration> &t);
(seit C++11)
Konvertiert einen std::chrono::time_point von einer Dauer zu einem anderen .
Original:
Converts a std::chrono::time_point from one duration to another.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inhaltsverzeichnis

[Bearbeiten] Parameter

t -
time_point aus umzuwandeln
Original:
time_point to convert from
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Rückgabewert

std::chrono::time_point<Clock, ToDuration>(std::chrono::duration_cast<ToDuration>(t.time_since_epoch()))

[Bearbeiten] Notes

time_point_cast nur in Überladungsauflösung teilnehmen, wenn ToDuration ist eine Instanziierung duration .
Original:
time_point_cast will only participate in overload resolution if ToDuration is an instantiation of duration.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Beispiel