qscopedpointer.h File Reference

#include <QtCore/qglobal.h>

Go to the source code of this file.

Classes

struct   QScopedPointerDeleter< T >
struct   QScopedPointerArrayDeleter< T >
struct   QScopedPointerPodDeleter
class   QScopedPointer< T, Cleanup >
class   QScopedArrayPointer< T, Cleanup >

Functions

template<class T , class Cleanup >
bool  operator== (const QScopedPointer< T, Cleanup > &lhs, const QScopedPointer< T, Cleanup > &rhs)
template<class T , class Cleanup >
bool  operator!= (const QScopedPointer< T, Cleanup > &lhs, const QScopedPointer< T, Cleanup > &rhs)
template<class T , class Cleanup >
Q_INLINE_TEMPLATE void  qSwap (QScopedPointer< T, Cleanup > &p1, QScopedPointer< T, Cleanup > &p2)

Function Documentation

bool operator== ( const QScopedPointer< T, Cleanup > &  lhs,
const QScopedPointer< T, Cleanup > &  rhs 
) [inline]

Definition at line 174 of file qscopedpointer.h.

{
    return lhs.data() == rhs.data();
}
bool operator!= ( const QScopedPointer< T, Cleanup > &  lhs,
const QScopedPointer< T, Cleanup > &  rhs 
) [inline]

Definition at line 180 of file qscopedpointer.h.

{
    return lhs.data() != rhs.data();
}
Q_INLINE_TEMPLATE void qSwap ( QScopedPointer< T, Cleanup > &  p1,
QScopedPointer< T, Cleanup > &  p2 
)

Definition at line 186 of file qscopedpointer.h.

{ p1.swap(p2); }