40 template <
class ElementType,
class TypeOfCriticalSectionToUse>
52 : elements (std::move (other.elements)),
53 numAllocated (other.numAllocated)
59 elements = std::move (other.elements);
60 numAllocated = other.numAllocated;
74 if (numAllocated != numElements)
77 elements.
realloc ((
size_t) numElements);
81 numAllocated = numElements;
95 if (minNumElements > numAllocated)
98 jassert (numAllocated <= 0 || elements !=
nullptr);
106 if (maxNumElements < numAllocated)
114 std::swap (numAllocated, other.numAllocated);
119 int numAllocated = 0;