blob: a842bba40e3492854a34c410f5441e610f0cb951 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <string>
#include <vector>
class Stack {
public:
void push(const std::string&); /** @brief append to stack */
const std::string& pop(); /** @brief remove and return last value on stack */
const std::string& peek(); /** @brief return but keep last value on stack */
unsigned size(); /** @brief get size of stack */
public:
Stack();
virtual ~Stack();
private:
std::vector<std::string> _stack;
};
|