- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

Classes | Functions

# 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
| ) |  |

Search for all occurrences

Definition at line 253 of file qshareddata.h.

    { p1.swap(p2); }

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

Search for all occurrences

Definition at line 257 of file qshareddata.h.

    { p1.swap(p2); }