aboutsummaryrefslogtreecommitdiff
path: root/src/utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utility.h')
-rw-r--r--src/utility.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/utility.h b/src/utility.h
index a38d15f30..897390dba 100644
--- a/src/utility.h
+++ b/src/utility.h
@@ -1608,7 +1608,7 @@ public:
return true;
}
- void pop_front()
+ Value pop_front()
{
typename core::list<Value>::Iterator i = m_list.begin();
Value value = *i;
@@ -1617,6 +1617,12 @@ public:
return value;
}
+ u32 size()
+ {
+ assert(m_list.size() == m_map.size());
+ return m_list.size();
+ }
+
private:
core::map<Value, u8> m_map;
core::list<Value> m_list;