QtCore/qshareddata.h File Reference

qshareddata.h File Reference
#include <QtCore/qglobal.h>
#include <QtCore/qatomic.h>

Classes

class  QSharedDataPointer< T >
 
class  QSharedData
 
class  QSharedDataPointer< T >
 
class  QExplicitlySharedDataPointer< T >
 

Namespaces

 std
 

Functions

template<class T >
Q_INLINE_TEMPLATE void qSwap (QSharedDataPointer< T > &p1, QSharedDataPointer< T > &p2)
 
template<class T >
Q_INLINE_TEMPLATE void qSwap (QExplicitlySharedDataPointer< T > &p1, QExplicitlySharedDataPointer< T > &p2)
 
template<class T >
Q_INLINE_TEMPLATE void swap (QT_PREPEND_NAMESPACE(QSharedDataPointer)< T > &p1, QT_PREPEND_NAMESPACE(QSharedDataPointer)< T > &p2)
 
template<class T >
Q_INLINE_TEMPLATE void swap (QT_PREPEND_NAMESPACE(QExplicitlySharedDataPointer)< T > &p1, QT_PREPEND_NAMESPACE(QExplicitlySharedDataPointer)< T > &p2)
 

Function Documentation

Q_INLINE_TEMPLATE void qSwap ( QSharedDataPointer< T > &  p1,
QSharedDataPointer< T > &  p2 
)

Definition at line 261 of file qshareddata.h.

262 { p1.swap(p2); }
void swap(QSharedDataPointer &other)
Definition: qshareddata.h:124
Q_INLINE_TEMPLATE void qSwap ( QExplicitlySharedDataPointer< T > &  p1,
QExplicitlySharedDataPointer< T > &  p2 
)

Definition at line 265 of file qshareddata.h.

266 { p1.swap(p2); }
void swap(QExplicitlySharedDataPointer &other)
Definition: qshareddata.h:208

Go to the source code of this file.