Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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.

References swap(), and value2.

Referenced by QTessellatorPrivate::Edge::Edge(), QV4::MemorySegment::MemorySegment(), QJSManagedValue::QJSManagedValue(), QSslKey::QSslKey(), QTextCursorPrivate::aboutToRemoveCell(), QTessellatorPrivate::addEdges(), QPathSegments::addPath(), QmlIR::IRBuilder::appendBinding(), QmlIR::IRBuilder::appendBinding(), avfVideoSettings(), QT_BEGIN_NAMESPACE::bswap2(), QT_BEGIN_NAMESPACE::bswap4(), QKdPointTree::build(), QV4::Runtime::CompareEqual::call(), QQuadPath::contains(), QVncClient::convertPixels(), QGraphicsAnchorLayoutPrivate::correctEdgeDirection(), QV4::Compiler::Codegen::defineFunction(), QmlIR::IRBuilder::defineQMLObject(), QQuickRow::doPositioning(), QQuickFlow::doPositioning(), drawLine(), drawLineAA(), drawPolygons(), drawRectangle(), QBoxLayoutPrivate::effectiveMargins(), QQmlPartsModel::emitModelUpdated(), QCborContainerPrivate::extractAt(), QQuadPath::fillSideOf(), fillTrapezoid(), QQuickStateGroupPrivate::findTransition(), QmlIR::IRBuilder::generateFromQml(), QGradientCache::generateGradientColorTable(), QPdfDocument::getSelection(), QQuickTextInput::getText(), gridAt(), QTreeView::indexRowSizeHint(), QQuickLinearLayout::insertLayoutItems(), QAbstractItemModelPrivate::Persistent::insertMultiAtEnd(), QGridLayoutEngine::itemAt(), QV4::Compiler::Codegen::jumpBinop(), lineIntersectsRect(), QSGBatchRenderer::Rect::map(), QScanConverter::mergeLine(), QQmlProperty::operator=(), QJSManagedValue::operator=(), QSslKey::operator=(), QV4::RuntimeHelpers::ordinaryToPrimitive(), QTableView::paintEvent(), parseDateString(), QSGCurveProcessor::processFill(), QWidgetLineControl::processInputMethodEvent(), qCompareFractions(), qt_call_post_routines(), qt_getInflectionPoints(), qt_transform_image(), QQuick3DParticleModelBlendParticle::randomIndex(), QRasterizer::rasterizeLine(), QWaveDecoder::readData(), QQuickTextInput::remove(), QCoreApplication::removePostedEvents(), QHeaderViewPrivate::sectionHandleAt(), QQmlTreeModelToTableModel::selectionForRowRange(), QAndroidInputContext::setComposingRegion(), QVariantAnimationPrivate::setCurrentValueForProgress(), QGraphicsGridLayout::setGeometry(), QGraphicsLinearLayout::setGeometry(), QGraphicsAnchorLayoutPrivate::setItemsGeometries(), QtPrivate::QCalendarModel::setRange(), QListView::setSelection(), QScrollerPrivate::setState(), QBoxLayoutPrivate::setupGeom(), QV4::Compiler::Codegen::statement(), QV4::Compiler::Codegen::statement(), QBezier::stationaryYPoints(), QQC2_NAMESPACE::QMacStyle::subElementRect(), QQC2::QCommonStyle::subElementRect(), QMacStyle::subElementRect(), QCommonStyle::subElementRect(), QDBusSlotCache::Data::swap(), QFontEngine::Holder::swap(), QAppleRefCounted< T, U, RetainFunction, ReleaseFunction >::swap(), QDataBuffer< Type >::swap(), QDBusSlotCache::swap(), QFutureInterfaceBase::swap(), QJsonDocument::swap(), QMimeGlobPattern::swap(), QMimeMagicRule::swap(), QMimeMagicRuleMatcher::swap(), QRingChunk::swap(), QWinRegistryKey::swap(), QList< T >::swapItemsAt(), QTessellator::tessellateConvex(), QTessellator::tessellateRect(), QBezier::tForY(), QSize::transpose(), QSizeF::transpose(), QHVContainer< T >::transpose(), QSGBasicInternalImageNode::updateGeometry(), QmlIR::IRBuilder::visit(), and QmlIR::IRBuilder::visit().

+ Here is the call graph for this function:

◆ qt_ptr_swap()