Adds rhs to the wrapped value.

Synopsis

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

constexpr
constrained&
operator+=(constrained const& rhs)
requires requires(T& a, const T b) {
      { a += b } ‐> std::same_as<T&>;
    };

Return Value

a reference to *this, after the addition

Parameters

Name

Description

rhs

the value to add

Created with MrDocs