aboutsummaryrefslogtreecommitdiff
path: root/lout/misc.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-05-24 00:35:15 +0200
committerSebastian Geerken <devnull@localhost>2015-05-24 00:35:15 +0200
commit6a9fcedc2df7b2dc81aa16b11f64758acbccc83f (patch)
tree109ed0aec0bb5f720f27cc7646d2b5c8f816166c /lout/misc.hh
parentf71b8f3955eebc6238f7d5a93194bad67c99f0fa (diff)
SRDOP: position is now correctly calculated.
Diffstat (limited to 'lout/misc.hh')
-rw-r--r--lout/misc.hh4
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)