Template Struct Swapable

Inheritance Relationships

Base Type

Struct Documentation

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

A template for swapping types. Used to make a type swappable.

Template Parameters:

TUnderlying

Public Functions

inline constexpr void swap(TUnderlying &lhs, TUnderlying &other) noexcept

Swap the underlying type with another underlying type.

Parameters:
  • lhs[inout] The left-hand side of the swap.

  • other[inout] The right-hand side of the swap.