diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/mstack.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resources/mstack.h b/src/resources/mstack.h index ba1a58eb2..2a568bc5a 100644 --- a/src/resources/mstack.h +++ b/src/resources/mstack.h @@ -78,7 +78,7 @@ struct MStack final mPointer --; } - T &top() + T &top() const { return *mPointer; } @@ -93,6 +93,11 @@ struct MStack final mPointer = mStack - 1; } + bool empty() const + { + return mPointer == mStartPointer; + } + T *mStack; size_t mMaxSize; |