Go to the documentation of this file.
29 #ifndef JUCE_ARRAYALLOCATIONBASE_H_INCLUDED
30 #define JUCE_ARRAYALLOCATIONBASE_H_INCLUDED
45 template <
class ElementType,
class TypeOfCriticalSectionToUse>
61 #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS
138 #endif // JUCE_ARRAYALLOCATIONBASE_H_INCLUDED
void swapWith(ArrayAllocationBase< ElementType, TypeOfCriticalSectionToUse > &other) noexcept
Definition: juce_ArrayAllocationBase.h:123
void ensureAllocatedSize(const int minNumElements)
Definition: juce_ArrayAllocationBase.h:105
void realloc(const size_t newNumElements, const size_t elementSize=sizeof(ElementType))
Definition: juce_HeapBlock.h:255
ArrayAllocationBase() noexcept
Definition: juce_ArrayAllocationBase.h:51
#define noexcept
Definition: juce_CompilerSupport.h:141
HeapBlock< ElementType > elements
Definition: juce_ArrayAllocationBase.h:130
Definition: juce_ArrayAllocationBase.h:46
~ArrayAllocationBase() noexcept
Definition: juce_ArrayAllocationBase.h:57
void free() noexcept
Definition: juce_HeapBlock.h:265
int numAllocated
Definition: juce_ArrayAllocationBase.h:131
void setAllocatedSize(const int numElements)
Definition: juce_ArrayAllocationBase.h:84
void swapWith(HeapBlock< ElementType, otherBlockThrows > &other) noexcept
Definition: juce_HeapBlock.h:275
void shrinkToNoMoreThan(const int maxNumElements)
Definition: juce_ArrayAllocationBase.h:116