![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
| using std::chrono::hours = duration<std::int32_t, std::ratio<3600>> |
Hours convenience type alias.
Microseconds convenience type alias.
Milliseconds convenience type alias.
| using std::chrono::minutes = duration<std::int32_t, std::ratio<60>> |
Seconds convenience type alias.
Nanoseconds convenience type alias.
| using std::chrono::seconds = duration<std::int64_t> |
Seconds convenience type alias.
|
constexprnoexcept |
Convert a duration to a different duration type.
| ToDuration | The target duration type to convert to |
| Rep | The representation type of the source duration |
| Period | The period type of the source duration |
| duration | The source duration to convert |
|
constexprnoexcept |
Inequality comparison operator for duration types.
| Rep1 | Representation type of the first duration |
| Period1 | Period type of the first duration |
| Rep2 | Representation type of the second duration |
| Period2 | Period type of the second duration |
| lhs | Left-hand side duration |
| rhs | Right-hand side duration |
|
constexprnoexcept |
Compare two time points for inequality if they're both from the same clock.
| Clock | The clock shared by both time_points, deduced from left and right |
| Duration1 | The duration type of the first time_point, deduced from left |
| Duration2 | The duration type of the second time_point, deduced from right |
| left | The first time_point |
| right | The second time_point |
true if left and right refer to different time points, otherwise false
|
constexprnoexcept |
Modulo operator for duration and scalar.
| Rep1 | Representation type of the duration |
| Period | Period type of the duration |
| Rep2 | Type of the scalar |
| dur | The duration |
| scalar | The scalar |
|
constexprnoexcept |
Modulo operator for two durations.
| Rep1 | Representation type of the first duration |
| Period1 | Period type of the first duration |
| Rep2 | Representation type of the second duration |
| Period2 | Period type of the second duration |
| lhs | Left-hand side duration |
| rhs | Right-hand side duration |
|
constexprnoexcept |
Multiplication operator for duration and scalar.
| Rep1 | Representation type of the duration |
| Period | Period type of the duration |
| Rep2 | Type of the scalar |
| dur | The duration |
| scalar | The scalar |
|
constexprnoexcept |
Multiplication operator for scalar and duration.
| Rep1 | Type of the scalar |
| Rep2 | Representation type of the duration |
| Period | Period type of the duration |
| scalar | The scalar |
| dur | The duration |
|
constexprnoexcept |
Add a time_point to a duration when the two are compatible.
| Rep1 | The arithmetic representation of the duration, deduced from left |
| Period1 | The tick period of the duration, deduced from left |
| Clock | The clock of the time_point, deduced from right |
| Duration2 | The duration type of the time_point, deduced from right |
| left | The duration to be added |
| right | The time_point to be added |
right shifted by left
|
constexprnoexcept |
Addition operator for duration types.
| Rep1 | Representation type of the first duration |
| Period1 | Period type of the first duration |
| Rep2 | Representation type of the second duration |
| Period2 | Period type of the second duration |
| lhs | Left-hand side duration |
| rhs | Right-hand side duration |
|
constexprnoexcept |
Add a time_point to a duration when the two are compatible.
| Clock | The clock of the time_point, deduced from left |
| Duration1 | The duration type of the time_point, deduced from left |
| Rep2 | The arithmetic representation of the duration, deduced from right |
| Period2 | The tick period of the duration, deduced from right |
| left | The time_point to be added |
| right | The duration to be added |
left shifted by right
|
constexprnoexcept |
Subtraction operator for duration types.
| Rep1 | Representation type of the first duration |
| Period1 | Period type of the first duration |
| Rep2 | Representation type of the second duration |
| Period2 | Period type of the second duration |
| lhs | Left-hand side duration |
| rhs | Right-hand side duration |
|
constexprnoexcept |
Subtract a duration from a time_point when the two are compatible.
| Clock | The clock of the time_point, deduced from left |
| Duration1 | The duration type of the time_point, deduced from left |
| Rep2 | The arithmetic representation of the duration, deduced from right |
| Period2 | The tick period of the duration, deduced from right |
| left | The time_point to be subtracted from |
| right | The duration to be subtracted |
left shifted by the inverse of right
|
constexprnoexcept |
Get the duration between two time_points when the two are compatible.
| Clock | The clock shared by both time_points, deduced from left and right |
| Duration1 | The duration type of the first time_point, deduced from left |
| Duration2 | The duration type of the second time_point, deduced from right |
| left | The first time_point, where the return value is "duration from here" |
| right | The second time_point, where the return value is "duration to here" |
duration representing the time from left to right
|
constexprnoexcept |
Division operator for duration and scalar.
| Rep1 | Representation type of the duration |
| Period | Period type of the duration |
| Rep2 | Type of the scalar |
| dur | The duration |
| scalar | The scalar |
|
constexprnoexcept |
Division operator for two durations.
| Rep1 | Representation type of the first duration |
| Period1 | Period type of the first duration |
| Rep2 | Representation type of the second duration |
| Period2 | Period type of the second duration |
| lhs | Left-hand side duration |
| rhs | Right-hand side duration |
|
constexprnoexcept |
Less-than comparison operator for duration types.
| Rep1 | Representation type of the first duration |
| Period1 | Period type of the first duration |
| Rep2 | Representation type of the second duration |
| Period2 | Period type of the second duration |
| lhs | Left-hand side duration |
| rhs | Right-hand side duration |
|
constexprnoexcept |
Compare two time points for ordering if they're both from the same clock.
| Clock | The clock shared by both time_points, deduced from left and right |
| Duration1 | The duration type of the first time_point, deduced from left |
| Duration2 | The duration type of the second time_point, deduced from right |
| left | The first time_point |
| right | The second time_point |
true if left refers to a time point earlier than right, otherwise false
|
constexprnoexcept |
Less-than-or-equal comparison operator for duration types.
| Rep1 | Representation type of the first duration |
| Period1 | Period type of the first duration |
| Rep2 | Representation type of the second duration |
| Period2 | Period type of the second duration |
| lhs | Left-hand side duration |
| rhs | Right-hand side duration |
|
constexprnoexcept |
Compare two time points for ordering if they're both from the same clock.
| Clock | The clock shared by both time_points, deduced from left and right |
| Duration1 | The duration type of the first time_point, deduced from left |
| Duration2 | The duration type of the second time_point, deduced from right |
| left | The first time_point |
| right | The second time_point |
true if left refers to a time point no later than right, otherwise false
|
constexprnoexcept |
Equality comparison operator for duration types.
| Rep1 | Representation type of the first duration |
| Period1 | Period type of the first duration |
| Rep2 | Representation type of the second duration |
| Period2 | Period type of the second duration |
| lhs | Left-hand side duration |
| rhs | Right-hand side duration |
|
constexprnoexcept |
Compare two time points for equality if they're both from the same clock.
| Clock | The clock shared by both time_points, deduced from left and right |
| Duration1 | The duration type of the first time_point, deduced from left |
| Duration2 | The duration type of the second time_point, deduced from right |
| left | The first time_point |
| right | The second time_point |
true if left and right refer to the same time point, otherwise false
|
constexprnoexcept |
Greater-than comparison operator for duration types.
| Rep1 | Representation type of the first duration |
| Period1 | Period type of the first duration |
| Rep2 | Representation type of the second duration |
| Period2 | Period type of the second duration |
| lhs | Left-hand side duration |
| rhs | Right-hand side duration |
|
constexprnoexcept |
Compare two time points for ordering if they're both from the same clock.
| Clock | The clock shared by both time_points, deduced from left and right |
| Duration1 | The duration type of the first time_point, deduced from left |
| Duration2 | The duration type of the second time_point, deduced from right |
| left | The first time_point |
| right | The second time_point |
true if left refers to a time point later than right, otherwise false
|
constexprnoexcept |
Greater-than-or-equal comparison operator for duration types.
| Rep1 | Representation type of the first duration |
| Period1 | Period type of the first duration |
| Rep2 | Representation type of the second duration |
| Period2 | Period type of the second duration |
| lhs | Left-hand side duration |
| rhs | Right-hand side duration |
|
constexprnoexcept |
Compare two time points for ordering if they're both from the same clock.
| Clock | The clock shared by both time_points, deduced from left and right |
| Duration1 | The duration type of the first time_point, deduced from left |
| Duration2 | The duration type of the second time_point, deduced from right |
| left | The first time_point |
| right | The second time_point |
true if left refers to a time point no earlier than right, otherwise false
|
constexprnoexcept |
Cast a time_point into another type with the same clock but a different duration type.
| ToDuration | The duration type to be used after the cast |
| Clock | The clock of the time_point, deduced from point |
| Duration | The duration type of the existing time_point, deduced from point |
| point | The time point to cast to the new duration ToDuration |
point, but using duration type ToDuration
|
constexpr |
Helper variable template for treat_as_floating_point.
| Rep | The representation type to check |