const version of get() which won't barf when at or behind end of memory. Can be used to test for end of sequence.

Nicky 2013-10-13 18:26:54 +02:00
parent 6942101c06
commit 7622272c39
1 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,11 @@ public:
return mObjectp;
}
Object const* get() const
{
return mObjectp;
}
Object* operator->()
{
if( !assertValid( mBytep ) )