HDK
|
Go to the source code of this file.
Macros | |
#define | UT_SWAPPER_CLASS(T) SYS_FORCE_INLINE void UTswap(T &a, T &b) { a.swap(b); } |
#define | UT_SWAPPER_TEMPLATE(T) |
Functions | |
template<typename T > | |
void | UTswap (T &a, T &b) |
template<typename T , size_t N> | |
void | UTswap (T(&a)[N], T(&b)[N]) |
template<typename T , size_t S> | |
void | UTswap (T(&a)[S], T(&b)[S], size_t at_most) |
Macro for specializing std::swap() and UTswap() for classes that have a swap method.
#define UT_SWAPPER_TEMPLATE | ( | T | ) |
Macro for specializing std::swap() and UTswap() for classes that have a swap method.
void UTswap | ( | T & | a, |
T & | b | ||
) |
Generic swap so that it will always work for specializations that use argument-dependent lookup (ADL).
Contrived specialization example: (note that this is not necessary if MyClass obeys rule of zero)
void UTswap | ( | T(&) | a[N], |
T(&) | b[N] | ||
) |
Generic swap so that it will always work for specializations that use argument-dependent lookup (ADL).
Contrived specialization example: (note that this is not necessary if MyClass obeys rule of zero)
|
inline |
Generic swap so that it will always work for specializations that use argument-dependent lookup (ADL).
Contrived specialization example: (note that this is not necessary if MyClass obeys rule of zero)