aboutsummaryrefslogtreecommitdiff
path: root/src/stack.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stack.hpp')
-rw-r--r--src/stack.hpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/stack.hpp b/src/stack.hpp
deleted file mode 100644
index 4da5f76..0000000
--- a/src/stack.hpp
+++ /dev/null
@@ -1,40 +0,0 @@
-#pragma once
-
-#include <vector>
-
-/**
- * A stack data structure.
- */
-template <typename Item>
-class Stack
-{
-public:
- /**
- * Creates a stack.
- *
- * @param capacity The capacity of the stack
- */
- Stack(unsigned long capacity);
-
- /**
- * Pushes a item onto the stack.
- */
- void push(Item item);
-
- /**
- * Pops the topmost item from the stack.
- */
- void pop();
-
- /**
- * Peeks into the stack.
- *
- * @returns The topmost stack item.
- */
- Item peek();
-
-private:
- std::vector<Item> _items;
-};
-
-#include "stack.tpp"