Template Struct PrefixIncrementable

Inheritance Relationships

Base Type

Struct Documentation

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

A template for incrementable types. Provides the ++ operator.

Note

The operator is a prefix operator.

Template Parameters:

TUnderlying

Public Functions

inline TUnderlying &operator++() noexcept

Increment the underlying type.

Returns:

The underlying type after the increment.