diff options
| author | Tyge Løvset <[email protected]> | 2023-03-22 17:32:21 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-03-22 17:32:21 +0100 |
| commit | e6a25eaaf4687ff99d0d719d0b32ad512156039e (patch) | |
| tree | 6bc1730f6882eb054c6472361487a0be8b85c7aa /docs | |
| parent | 66429475ed6ac0deaba85989174e8880762d7888 (diff) | |
| download | STC-modified-e6a25eaaf4687ff99d0d719d0b32ad512156039e.tar.gz STC-modified-e6a25eaaf4687ff99d0d719d0b32ad512156039e.zip | |
Added c_foreach_r() macro for reverse iter of cvec, cdeq, cstack.
Moved c_find_if, c_erase_if, c_eraseremove_if to algo/filter.h
Internals.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ccommon_api.md | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md index ff75d83d..64daad42 100644 --- a/docs/ccommon_api.md +++ b/docs/ccommon_api.md @@ -94,13 +94,14 @@ int main() ``` ## Loop abstraction macros -### c_foreach, c_forpair - -| Usage | Description | -|:-----------------------------------------|:--------------------------------| -| `c_foreach (it, ctype, container)` | Iteratate all elements | -| `c_foreach (it, ctype, it1, it2)` | Iterate the range [it1, it2) | -| `c_forpair (key, val, ctype, container)` | Iterate with structured binding | +### c_foreach, c_foreach_r, c_forpair + +| Usage | Description | +|:-----------------------------------------|:----------------------------------------| +| `c_foreach (it, ctype, container)` | Iteratate all elements | +| `c_foreach (it, ctype, it1, it2)` | Iterate the range [it1, it2) | +| `c_foreach_r (it, ctype, container)` | Iteratate in reverse (cstack,cvec,cdeq) | +| `c_forpair (key, val, ctype, container)` | Iterate with structured binding | ```c #define i_key int |
