Function swap

Synopsis

#include <src/entt/core/compressed_pair.hpp>

template <typename First, typename Second>
void swap(compressed_pair< First, Second > &lhs, compressed_pair< First, Second > &rhs)

Description

Swaps two compressed pair objects.

Template Parameters

First - The type of the first element that the pairs store.

Second - The type of the second element that the pairs store.

Parameters

lhs - A valid compressed pair object.

rhs - A valid compressed pair object.

Source

Lines 247-250 in src/entt/core/compressed_pair.hpp.

template<typename First, typename Second>
inline void swap(compressed_pair<First, Second> &lhs, compressed_pair<First, Second> &rhs) {
    lhs.swap(rhs);
}





Add Discussion

Log in to comment