summaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/list.h b/src/list.h
index 839494d..ec0c195 100644
--- a/src/list.h
+++ b/src/list.h
@@ -91,6 +91,21 @@ namespace Bu
91 nSize = 0; 91 nSize = 0;
92 } 92 }
93 93
94 void enqueue( const value &v )
95 {
96 append( v );
97 }
98
99 value dequeue()
100 {
101 value v = *pFirst->pValue;
102
103 erase( begin() );
104
105 return v;
106 }
107
108
94 /** 109 /**
95 * Append a value to the list. 110 * Append a value to the list.
96 *@param v (const value_type &) The value to append. 111 *@param v (const value_type &) The value to append.