summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-10-14 03:37:42 +0000
committerMike Buland <eichlan@xagasoft.com>2007-10-14 03:37:42 +0000
commit44eac9521632f8da42f73085db945bdba45f8311 (patch)
tree8e320c34c4b9b1cd30c4be0f9901e963e60cc781 /src
parentfdc3169942c1a9523eb0fca3e2742d14612ca57c (diff)
downloadlibbu++-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 'src')
-rw-r--r--src/queue.cpp1
-rw-r--r--src/queue.h16
2 files changed, 17 insertions, 0 deletions
diff --git a/src/queue.cpp b/src/queue.cpp
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/src/queue.cpp
@@ -0,0 +1 @@
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
4namespace 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