diff options
Diffstat (limited to 'src/stable')
-rw-r--r-- | src/stable/array.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/stable/array.h b/src/stable/array.h index 364a5b3..f765e75 100644 --- a/src/stable/array.h +++ b/src/stable/array.h | |||
@@ -280,6 +280,15 @@ namespace Bu | |||
280 | } | 280 | } |
281 | 281 | ||
282 | /** | 282 | /** |
283 | * Returns true if the array is empty. The capacity has no bearing on | ||
284 | * this, only the size. | ||
285 | */ | ||
286 | bool isEmpty() const | ||
287 | { | ||
288 | return core->iSize==0; | ||
289 | } | ||
290 | |||
291 | /** | ||
283 | * Get the current size of the array. | 292 | * Get the current size of the array. |
284 | *@returns The current size of the array. | 293 | *@returns The current size of the array. |
285 | */ | 294 | */ |