diff --git a/tinyxml2.h b/tinyxml2.h index ca3d90e..26179f9 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -216,6 +216,10 @@ public: } } + void Reset() { + _size = 0; + } + void Push( T t ) { EnsureCapacity( _size+1 ); _mem[_size++] = t;