Increment operators
Synopses
Declared in <mp‐units/framework/quantity_point.h>
Pre‐increments the underlying quantity from the origin.
constexpr
quantity_point&
operator++() &
requires requires { ++quantity_from_origin_is_an_implementation_detail_; };
Post‐increments the underlying quantity from the origin.
[[nodiscard]]
constexpr
quantity_point
operator++(int unused_tag)
requires requires { quantity_from_origin_is_an_implementation_detail_++; };
Return Value
-
*this, after the increment. -
A quantity point holding the value of
*thisbefore the increment.
Parameters
Name |
Description |
unused_tag |
An unused tag parameter that distinguishes this overload as the post‐increment operator. |
Created with MrDocs