Template Struct Swapable
Defined in File t8_operators.hxx
Inheritance Relationships
Base Type
public t8_crtp_operator< TUnderlying, Swapable >(Template Struct t8_crtp_operator)
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.