mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 02:43:15 +00:00
- Made an external app from internal Calculator app - Update tactility.py to v1.2.0 (fix bug with selfupdate) - Added warning to Development service UI - Add context to `SECURITY.md` - Split `ObjectFileReader` and `ObjectFileWriter` into separate cpp files - Fix related to GPS config read errors
22 lines
377 B
C++
22 lines
377 B
C++
#pragma once
|
|
|
|
#include "Dequeue.h"
|
|
|
|
template <typename DataType>
|
|
class Stack {
|
|
|
|
Dequeue<DataType> dequeue;
|
|
|
|
public:
|
|
|
|
void push(DataType data) { dequeue.pushFront(data); }
|
|
|
|
void pop() { dequeue.popFront(); }
|
|
|
|
DataType top() const { return dequeue.front(); }
|
|
|
|
bool empty() const { return dequeue.empty(); }
|
|
|
|
int size() const { return dequeue.size(); }
|
|
};
|