diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-10-14 03:37:42 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-10-14 03:37:42 +0000 |
commit | 44eac9521632f8da42f73085db945bdba45f8311 (patch) | |
tree | 8e320c34c4b9b1cd30c4be0f9901e963e60cc781 /src/queue.h | |
parent | fdc3169942c1a9523eb0fca3e2742d14612ca57c (diff) | |
download | libbu++-44eac9521632f8da42f73085db945bdba45f8311.tar.gz libbu++-44eac9521632f8da42f73085db945bdba45f8311.tar.bz2 libbu++-44eac9521632f8da42f73085db945bdba45f8311.tar.xz libbu++-44eac9521632f8da42f73085db945bdba45f8311.zip |
Added a temlatized Queue skeleton class, but I really didn't feel like writing
it just now. The Queue class has some obvious advantages over list if you
really only need Queue functionality, the main one being size, but also you can
get a slight speed advantage.
Diffstat (limited to '')
-rw-r--r-- | src/queue.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/queue.h b/src/queue.h new file mode 100644 index 0000000..0e3ed1f --- /dev/null +++ b/src/queue.h | |||
@@ -0,0 +1,16 @@ | |||
1 | #ifndef BU_QUEUE_H | ||
2 | #define BU_QUEUE_H | ||
3 | |||
4 | namespace Bu | ||
5 | { | ||
6 | template<typename value, typename valuealloc = std::allocator<value> > | ||
7 | class Queue | ||
8 | { | ||
9 | public: | ||
10 | |||
11 | private: | ||
12 | |||
13 | }; | ||
14 | } | ||
15 | |||
16 | #endif | ||