JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
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.
template<class ObjectType >
bool operator!= (const ScopedPointer< ObjectType > &pointer1, ObjectType *const pointer2) noexcept
 Compares a ScopedPointer with another pointer.

Function Documentation

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

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 
)

Compares a ScopedPointer with another pointer.

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