Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qswap.h File Reference

(bb51f0d81437c1471069e8758cefcc090377aa51)

#include <QtCore/qtconfigmacros.h>
#include <type_traits>
#include <utility>
Include dependency graph for qswap.h:

Go to the source code of this file.

Functions

template<typename T>
QT_BEGIN_NAMESPACE constexpr void qSwap (T &value1, T &value2) noexcept(std::is_nothrow_swappable_v< T >)
template<typename T>
constexpr void qt_ptr_swap (T *&lhs, T *&rhs) noexcept

Function Documentation

◆ qSwap()

template<typename T>
QT_BEGIN_NAMESPACE constexpr void qSwap ( T & value1,
T & value2 )
constexprnoexcept

Definition at line 20 of file qswap.h.

◆ qt_ptr_swap()

template<typename T>
void qt_ptr_swap ( T *& lhs,
T *& rhs )
inlineconstexprnoexcept

Definition at line 29 of file qswap.h.