Adds a safe_int to a floating‐point value.
Synopsis
Declared in <mp‐units/utility/safe_int.h>
[[nodiscard]]
constexpr
auto
operator+(
U lhs,
safe_int rhs)
requires requires { lhs + static_cast<U>(rhs.value_); };
Return Value
the sum of lhs and the wrapped value
|
Note
|
The return value should not be discarded. |
Template Parameters
Name |
Description |
U |
a floating‐point‐like type ( |
Parameters
Name |
Description |
lhs |
the floating‐point value |
rhs |
the |
Created with MrDocs