aboutsummaryrefslogtreecommitdiff
path: root/src/stack.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-15 20:27:51 +0100
committerHampusM <hampus@hampusmat.com>2022-02-15 20:27:51 +0100
commit5dae8f8d10d506abc3c75a1f66c1dfe620c84fc1 (patch)
tree2bfb6efef0535a35bab1da811a5f69cb5203dff9 /src/stack.hpp
parent9147551cd21d565f9503e3ebbcd2121e284d88d5 (diff)
refactor: improve project design
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"