wloop / wlib-queue

Lightweight static queue implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wlib-queue

Lightweight static queue implementation.

Usage

wio install wlib-queue

And in code

wlp::queue<int, 32> intQueue;
intQueue.enqueue(25);
int front = intQueue.peek();
intQueue.dequeue();

Calling peek on an empty queue will return an erroneous value.

About

Lightweight static queue implementation


Languages

Language:C++ 91.7%Language:C 8.3%