##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# C++ concepts: TrivialClock

From cppreference.com
< cpp‎ | concept

The `TrivialClock` concept describes the requirements satisfied by all the clocks in the chrono library.

### [edit] Requirements

For a type TC:

- The type must meet `Clock` requirements.
- The types TC::rep, TC::duration, and TC::time_point satisfy the requirements of `EqualityComparable`, `LessThanComparable`, `DefaultConstructible`, `CopyConstructible`, `CopyAssignable`, `Destructible`, and the requirements of numeric types.
- lvalues of the types TC::rep, TC::duration, and TC::time_point are `Swappable`.
- The function TC::now() does not throw exceptions.
- The type TC::time_point::clock meets the `TrivialClock` requirements, recursively.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/concept/TrivialClock&oldid=46432"