Used by container classes as an indirect way to delete an object of a particular type. More...
#include <juce_ContainerDeletePolicy.h>
Static Public Member Functions | |
static void | destroy (ObjectType *object) |
Used by container classes as an indirect way to delete an object of a particular type.
The generic implementation of this class simply calls 'delete', but you can create a specialised version of it for a particular class if you need to delete that type of object in a more appropriate way.
@tags{Core}
|
inlinestatic |
References juce::ignoreUnused(), and juce::gl::object.
Referenced by juce::ReferenceCountedObjectPtr< juce::ReferenceCountedObject >::decIfNotNull(), juce::OwnedArray< SwatchComponent >::deleteAllObjects(), juce::ReferenceCountedArray< juce::AudioProcessorGraph::Node >::releaseObject(), and juce::OwnedArray< SwatchComponent >::removeRange().