The TrivialClock concept describes the requirements satisfied by all the clocks in the chrono library.
Requirements
For a type TC:
- The type must meet
Clockrequirements. - The types
TC::rep,TC::duration, andTC::time_pointsatisfy the requirements ofEqualityComparable,LessThanComparable,DefaultConstructible,CopyConstructible,CopyAssignable,Destructible, andNumericType. - lvalues of the types
TC::rep,TC::duration, andTC::time_pointareSwappable. - The function
TC::now()does not throw exceptions. - The type
TC::time_point::clockmeets theTrivialClockrequirements, recursively.
Usage
The following types satisfy this concept in the standard library:
-
std::chrono::system_clock -
std::chrono::steady_clock -
std::chrono::high_resolution_clock -
std::experimental::filesystem::file_time_type::clock
Please login to continue.