Returns a copy of the wrapped value, promoted as +value_ would promote T.

Synopsis

Declared in <mp‐units/utility/safe_int.h>

[[nodiscard]]
constexpr
safe_int<decltype(+value_), ErrorPolicy>
operator+() const;

Return Value

the (possibly promoted) wrapped value

Note

The return value should not be discarded.

Created with MrDocs