C++ named requirements: TrivialClock
The TrivialClock requirements describe the requirements satisfied by several clocks in the chrono library.
Requirements
For a type TC:
- The type must meet Clock requirements.
-  The types TC::rep,TC::duration, andTC::time_pointsatisfy the requirements of EqualityComparable, LessThanComparable, DefaultConstructible, CopyConstructible, CopyAssignable, Destructible, and NumericType.
-  lvalues of the types TC::rep,TC::duration, andTC::time_pointare Swappable.
-  The function TC::now()does not throw exceptions.
-  The type TC::time_point::clockmeets the TrivialClock requirements, recursively.
Usage
The following types in the standard library satisfy these requirements:
- 
std::chrono::system_clock
- 
std::chrono::steady_clock
- 
std::chrono::high_resolution_clock
- 
std::filesystem::file_time_type::clock
- 
std::chrono::file_clock
    © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
    http://en.cppreference.com/w/cpp/named_req/TrivialClock