JUCE
Classes | Functions
juce_ScopedPointer.h File Reference

Classes

class  ScopedPointer< ObjectType >
 This class holds a pointer which is automatically deleted when this object goes out of scope. More...
 

Functions

template<class ObjectType >
bool operator== (const ScopedPointer< ObjectType > &pointer1, ObjectType *const pointer2) noexcept
 Compares a ScopedPointer with another pointer. More...
 
template<class ObjectType >
bool operator!= (const ScopedPointer< ObjectType > &pointer1, ObjectType *const pointer2) noexcept
 Compares a ScopedPointer with another pointer. More...
 

Function Documentation

template<class ObjectType >
bool operator== ( const ScopedPointer< ObjectType > &  pointer1,
ObjectType *const  pointer2 
)
noexcept

Compares a ScopedPointer with another pointer.

This can be handy for checking whether this is a null pointer.

template<class ObjectType >
bool operator!= ( const ScopedPointer< ObjectType > &  pointer1,
ObjectType *const  pointer2 
)
noexcept

Compares a ScopedPointer with another pointer.

This can be handy for checking whether this is a null pointer.

References deleteAndZero(), and static_jassert.