From 5dae8f8d10d506abc3c75a1f66c1dfe620c84fc1 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 15 Feb 2022 20:27:51 +0100 Subject: refactor: improve project design --- src/stack.hpp | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/stack.hpp (limited to 'src/stack.hpp') 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 - -/** - * A stack data structure. - */ -template -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 _items; -}; - -#include "stack.tpp" -- cgit v1.2.3-18-g5258