Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qswap.h File Reference
#include <QtCore/qtconfigmacros.h>
#include <QtCore/qcompilerdetection.h>
+ Include dependency graph for qswap.h:

Go to the source code of this file.

Namespaces

namespace  QtPrivate
 \macro QT_NAMESPACE
 
namespace  QtPrivate::SwapExceptionTester
 

Functions

template<typename T >
void QtPrivate::SwapExceptionTester::checkSwap (T &t) noexcept(noexcept(swap(t, t)))
 
template<typename T >
constexpr void qSwap (T &value1, T &value2) noexcept(noexcept(QtPrivate::SwapExceptionTester::checkSwap(value1)))
 
template<typename T >
constexpr void qt_ptr_swap (T *&lhs, T *&rhs) noexcept
 

Function Documentation

◆ qSwap()

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

Definition at line 34 of file qswap.h.

References swap(), and value2.

+ Here is the call graph for this function:

◆ qt_ptr_swap()