Decrement operators

Synopses

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

Pre‐decrements the wrapped value.

constexpr
constrained&
operator‐‐()
requires requires(T& v) {
      { ‐‐v } ‐> std::same_as<T&>;
    };

Post‐decrements the wrapped value.

Return Value

  • a reference to *this, after decrementing

  • the value before decrementing, wrapped in constrained

Parameters

Name

Description

tag

unused; disambiguates this postfix overload from the prefix operator‐‐()

Created with MrDocs