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:
parent
7cecc7edfb
commit
09be38bc46
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue