Template Struct Addable

Inheritance Relationships

Base Type

Derived Type

  • public T8Type< size_t, t8_geometry_hash_tag, Addable, Subtractable, AddAssignable, Multipliable, Dividable, EqualityComparable, Hashable > (Template Class T8Type)

Struct Documentation

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

A template for addable types.

Provides the + operator.

Template Parameters:

TUnderlying

Subclassed by T8Type< size_t, t8_geometry_hash_tag, Addable, Subtractable, AddAssignable, Multipliable, Dividable, EqualityComparable, Hashable >

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.