medfall

A super great game engine
Log | Files | Refs

commit 7b7e210d7a3a8ed5452427a8954958b41ccae4b0
parent 5e107a7875ed126246f2a3c0d1d2f6a56b2f24b1
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon Aug 28 20:43:54 +0100

DynamicArray clear

Diffstat:
array.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/array.h b/array.h @@ -308,6 +308,10 @@ public: n++; } + void clear() { + n = 0; + } + T & operator[]( size_t i ) { ASSERT( i < n ); return elems[ i ];