mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
added clear()
This commit is contained in:
parent
fde7c654b6
commit
5824421c73
1 changed files with 6 additions and 0 deletions
6
deque.hh
6
deque.hh
|
|
@ -19,6 +19,12 @@ public:
|
|||
Deque() : head(SIZE-1), tail(0), count(0)
|
||||
{
|
||||
}
|
||||
void clear()
|
||||
{
|
||||
head = SIZE-1;
|
||||
tail = 0;
|
||||
count = 0;
|
||||
}
|
||||
void push_back(TYPE input)
|
||||
{
|
||||
assert(count < SIZE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue