Template Struct AddAssignable

Inheritance Relationships

Base Type

Struct Documentation

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

A template for add-assignable types.

Provides the += operator.

Template Parameters:

TUnderlying

Public Functions

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

Add-assign 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.