Negates the wrapped value

Synopsis

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

[[nodiscard]]
constexpr
constrained<decltype(‐std::declval<T>()), ErrorPolicy>
operator‐(constrained const& x);

Return Value

the wrapped result of negating x

Note

The return value should not be discarded.

Parameters

Name

Description

x

the wrapped value to negate

Created with MrDocs