"Fossies" - the Fresh Open Source Software Archive

Member "muscle/html/muscle-by-example/docs/queue.md" (28 Nov 2019, 3176 Bytes) of package /linux/privat/muscle7.52.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

muscle::Queue class (API)

#include "util/Queue.h"

Templated container class Queue<T> is a bidirectional variable-sized vector/queue/ring-buffer, implemented using an internal array and modulo-based index-arithmetic

This class is typically used when an expandable-array is desired (std::vector<T>-style), or an efficient FIFO-queue/ring-buffer is desired (std::deque<T>-style).

Try compiling and running the mini-example-programs in muscle/html/muscle-by-example/examples/queue (enter make to compile example_*, and then run each from Terminal while looking at the corresponding .cpp file)

Quick links to source code of relevant MUSCLE-by-example programs: