Template Struct Subtractable

Inheritance Relationships

Base Type

Struct Documentation

template<typename TUnderlying>
struct Subtractable : public t8_crtp_operator<TUnderlying, Subtractable>

A template for subtractable types.

Provides the - operator.

Template Parameters:

TUnderlying

Public Functions

inline constexpr TUnderlying operator-(const TUnderlying &other) const noexcept

Subtract the value of other from the underlying type.

Parameters:

other[in] The value to subtract from the underlying type.

Returns:

The underlying type after the subtraction.