mp_units::utility::constrained::operator++

Increment operators

Synopses

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

Pre-increments the wrapped value.

constexpr
constrained&
operator++()
requires requires(T& v) {
      { ++v } -> std::same_as<T&>;
    };
» more...

Post-increments the wrapped value.

constexpr
constrained<decltype(std::declval<T&>()++), ErrorPolicy>
operator++(int tag);
» more...

Return Value

  • a reference to *this, after incrementing
  • the value before incrementing, wrapped in constrained

Parameters

NameDescription
tagunused; disambiguates this postfix overload from the prefix operator++()