summaryrefslogtreecommitdiff
path: root/src/stable
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-10-17 06:55:24 +0000
committerMike Buland <eichlan@xagasoft.com>2012-10-17 06:55:24 +0000
commit2a6beffd5f9d6c6fd5374a6c66ef9d83d0cfebf2 (patch)
tree365511d837300c898be727d6190648d2d6005b6c /src/stable
parent955e3b8885397f394b72b57ccc0e0e0284fac77d (diff)
downloadlibbu++-2a6beffd5f9d6c6fd5374a6c66ef9d83d0cfebf2.tar.gz
libbu++-2a6beffd5f9d6c6fd5374a6c66ef9d83d0cfebf2.tar.bz2
libbu++-2a6beffd5f9d6c6fd5374a6c66ef9d83d0cfebf2.tar.xz
libbu++-2a6beffd5f9d6c6fd5374a6c66ef9d83d0cfebf2.zip
Added isEmpty to Bu::Array, it shoulda' been there all along.
Diffstat (limited to '')
-rw-r--r--src/stable/array.h9
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 */