diff options
| author | Tyge Løvset <[email protected]> | 2021-10-06 16:08:08 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-10-06 16:08:08 +0200 |
| commit | 435fd25e5c74aea72eb20f4007977183cdbe0919 (patch) | |
| tree | 58606c15052b37d27858ea6f707df8b2edf34a49 /docs/cqueue_api.md | |
| parent | 0fa5220d8d7cddbb668d02045ebd36709ba0bc6f (diff) | |
| download | STC-modified-435fd25e5c74aea72eb20f4007977183cdbe0919.tar.gz STC-modified-435fd25e5c74aea72eb20f4007977183cdbe0919.zip | |
Some while to for changed. Return value for cstack_X_push/emplace. Docs updated.
Diffstat (limited to 'docs/cqueue_api.md')
| -rw-r--r-- | docs/cqueue_api.md | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/docs/cqueue_api.md b/docs/cqueue_api.md index 76c189e5..087f9da5 100644 --- a/docs/cqueue_api.md +++ b/docs/cqueue_api.md @@ -22,38 +22,38 @@ See the c++ class [std::queue](https://en.cppreference.com/w/cpp/container/queue ## Methods ```c -cqueue_X cqueue_X_init(void); -cqueue_X cqueue_X_clone(cqueue_X q); +cqueue_X cqueue_X_init(void); +cqueue_X cqueue_X_clone(cqueue_X q); -void cqueue_X_clear(cqueue_X* self); -void cqueue_X_copy(cqueue_X* self, cqueue_X other); -void cqueue_X_del(cqueue_X* self); // destructor +void cqueue_X_clear(cqueue_X* self); +void cqueue_X_copy(cqueue_X* self, cqueue_X other); +void cqueue_X_del(cqueue_X* self); // destructor -size_t cqueue_X_size(cqueue_X q); -bool cqueue_X_empty(cqueue_X q); -cqueue_X_value_t* cqueue_X_front(const cqueue_X* self); -cqueue_X_value_t* cqueue_X_back(const cqueue_X* self); +size_t cqueue_X_size(cqueue_X q); +bool cqueue_X_empty(cqueue_X q); +cqueue_X_value_t* cqueue_X_front(const cqueue_X* self); +cqueue_X_value_t* cqueue_X_back(const cqueue_X* self); -void cqueue_X_push(cqueue_X* self, cqueue_X_value_t value); -void cqueue_X_emplace(cqueue_X* self, cqueue_X_rawvalue_t raw); +cqueue_X_value_t* cqueue_X_push(cqueue_X* self, i_val value); +cqueue_X_value_t* cqueue_X_emplace(cqueue_X* self, i_valraw raw); -void cqueue_X_pop(cqueue_X* self); +void cqueue_X_pop(cqueue_X* self); -cqueue_X_iter_t cqueue_X_begin(const cqueue_X* self); -cqueue_X_iter_t cqueue_X_end(const cqueue_X* self); -void cqueue_X_next(cqueue_X_iter_t* it); +cqueue_X_iter_t cqueue_X_begin(const cqueue_X* self); +cqueue_X_iter_t cqueue_X_end(const cqueue_X* self); +void cqueue_X_next(cqueue_X_iter_t* it); -cqueue_X_value_t cqueue_X_value_clone(cqueue_X_value_t val); +i_val cqueue_X_value_clone(i_val value); ``` ## Types -| Type name | Type definition | Used to represent... | -|:----------------------|:---------------------------------------|:-------------------------| -| `cqueue_X` | Same as `cdeq_X` type | The cqueue type | -| `cqueue_X_value_t` | " | The cqueue element type | -| `cqueue_X_rawvalue_t` | " | cqueue raw value type | -| `cqueue_X_iter_t` | " | cqueue iterator | +| Type name | Type definition | Used to represent... | +|:----------------------|:---------------------|:-------------------------| +| `cqueue_X` | `cdeq_X` | The cqueue type | +| `cqueue_X_value_t` | `i_val` | The cqueue element type | +| `cqueue_X_rawvalue_t` | `i_valraw` | cqueue raw value type | +| `cqueue_X_iter_t` | `cdeq_X_iter_t` | cqueue iterator | ## Examples ```c |
