diff options
| author | Tyge Løvset <[email protected]> | 2021-01-20 13:59:18 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-20 13:59:18 +0100 |
| commit | 1c9613395b1e6b9a16a1c20cd992d4d600d62726 (patch) | |
| tree | 386a5d5afb6bf148cf9e5c46e3d53f12cfa92de7 /docs | |
| parent | 74d19f04e12edeede0cff2468fc0e556ad37d04d (diff) | |
| download | STC-modified-1c9613395b1e6b9a16a1c20cd992d4d600d62726.tar.gz STC-modified-1c9613395b1e6b9a16a1c20cd992d4d600d62726.zip | |
Update cqueue_api.md
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cqueue_api.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/cqueue_api.md b/docs/cqueue_api.md index 8e200b36..04454a0e 100644 --- a/docs/cqueue_api.md +++ b/docs/cqueue_api.md @@ -1,18 +1,18 @@ # STC Container [cqueue](../stc/cqueue.h): Queue  -This describes the API of the queue type **cqueue**. -See [std::queue](https://en.cppreference.com/w/cpp/container/queue) for a similar c++ class. +The **cqueue** is container adapter that gives the programmer the functionality of a queue - specifically, a FIFO (first-in, first-out) data structure. The class template acts as a wrapper to the underlying container - only a specific set of functions is provided. The queue pushes the elements on the back of the underlying container and pops them from the front. -## Declaration +See the c++ class [std::queue](https://en.cppreference.com/w/cpp/container/queue) for a functional reference. +## Declaration ```c #define using_cqueue(X, ctype) ``` The macro `using_cqueue()` must be instantiated in the global scope. **cqueue** uses normally -a **cdeq_X** or **clist_X** type as underlying implementation, given as `ctype`. `X` is a type tag name and -will affect the names of all cqueue types and methods. E.g. declaring `using_cqueue(my, clist_my);`, -`X` should be replaced by `my` in all of the following documentation. +a **cdeq_X** or **clist_X** type as underlying implementation, given as `ctype`. See example below for usage. +`X` is a type tag name and will affect the names of all cqueue types and methods. E.g. declaring +`using_cqueue(my, clist_my)`, `X` should be replaced by `my` in all of the following documentation. ## Header file |
