Template Struct Addable

Inheritance Relationships

Base Type

Struct Documentation

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

A template for addable types.

Provides the + operator.

Template Parameters:

TUnderlying

Public Functions

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

Add the value of other to the underlying type.

Parameters:

other[in] The value to add to the underlying type.

Returns:

The underlying type after the addition.