1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Added isEmpty() method to OwnedArray.

This commit is contained in:
Timur Doumler 2016-03-20 22:16:03 +01:00
parent 7cecc7edfb
commit 09be38bc46

View file

@ -126,6 +126,12 @@ public:
return numUsed;
}
/** Returns true if the array is empty, false otherwise. */
inline bool isEmpty() const noexcept
{
return size() == 0;
}
/** Returns a pointer to the object at this index in the array.
If the index is out-of-range, this will return a null pointer, (and