diff options
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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. |