Consistency asserts

This commit is contained in:
Dmitry-Me 2015-06-18 16:40:09 +03:00
parent 2b2649e1e4
commit 2f5a103992
1 changed files with 3 additions and 0 deletions

View File

@ -281,14 +281,17 @@ public:
}
int Capacity() const {
TIXMLASSERT( _allocated >= INITIAL_SIZE );
return _allocated;
}
const T* Mem() const {
TIXMLASSERT( _mem );
return _mem;
}
T* Mem() {
TIXMLASSERT( _mem );
return _mem;
}