Template Struct PrefixDecrementable

Inheritance Relationships

Base Type

Struct Documentation

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

A template for decrementable types.

Provides the &#8212; operator.

Note

The operator is a prefix operator.

Template Parameters:

TUnderlying

Public Functions

inline TUnderlying &operator--() noexcept

Decrement the underlying type.

Returns:

The underlying type after the decrement.