From c4176c4dc172e8b30536a4eb90ae6f6f80f75436 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 5 Sep 2007 16:20:48 +0000 Subject: This commit has part of an Array class, I'm just not sure I really need it right now. Unfortunately it doesn't compile right now, if you want to build this version, just delete array. On the other hand, Bu::List now has enqueue/dequeue functions. --- src/list.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/list.h') 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 nSize = 0; } + void enqueue( const value &v ) + { + append( v ); + } + + value dequeue() + { + value v = *pFirst->pValue; + + erase( begin() ); + + return v; + } + + /** * Append a value to the list. *@param v (const value_type &) The value to append. -- cgit v1.2.3