qshareddata.h File Reference

#include <QtCore/qglobal.h>
#include <QtCore/qatomic.h>

Go to the source code of this file.

Classes

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

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)

Function Documentation

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

Definition at line 253 of file qshareddata.h.

{ p1.swap(p2); }
Q_INLINE_TEMPLATE void qSwap ( QExplicitlySharedDataPointer< T > &  p1,
QExplicitlySharedDataPointer< T > &  p2 
)

Definition at line 257 of file qshareddata.h.

{ p1.swap(p2); }