diff options
author | Sebastian Geerken <devnull@localhost> | 2015-05-24 00:35:15 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-05-24 00:35:15 +0200 |
commit | 6a9fcedc2df7b2dc81aa16b11f64758acbccc83f (patch) | |
tree | 109ed0aec0bb5f720f27cc7646d2b5c8f816166c /lout | |
parent | f71b8f3955eebc6238f7d5a93194bad67c99f0fa (diff) |
SRDOP: position is now correctly calculated.
Diffstat (limited to 'lout')
-rw-r--r-- | lout/misc.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lout/misc.hh b/lout/misc.hh index ac9e42e6..946ed821 100644 --- a/lout/misc.hh +++ b/lout/misc.hh @@ -120,6 +120,8 @@ public: */ inline int size() const { return this->num; } + inline bool empty() const { return size() == 0; } + inline T* getArray() const { return array; } inline T* detachArray() { @@ -380,6 +382,8 @@ public: inline int size() const { return this->numMain + this->numExtra; } + inline bool empty() const { return size() == 0; } + inline void increase() { setSize(size() + 1); } inline void setSize(int newSize) |