summaryrefslogtreecommitdiffhomepage
path: root/docs/algorithm_api.md
diff options
context:
space:
mode:
authortylov <[email protected]>2023-07-26 21:23:15 +0200
committertylov <[email protected]>2023-07-26 21:23:15 +0200
commitd7fba27af452de2d709767e615fa2e90d6b3a391 (patch)
tree33f83221b34b8a123d25ddc886512d81bbdee706 /docs/algorithm_api.md
parent5b54b0ca26540dd116880f316c6fa0291a7c96c7 (diff)
downloadSTC-modified-d7fba27af452de2d709767e615fa2e90d6b3a391.tar.gz
STC-modified-d7fba27af452de2d709767e615fa2e90d6b3a391.zip
Added cmap_emplace_key() / csmap_emplace_key()
More docs.
Diffstat (limited to 'docs/algorithm_api.md')
-rw-r--r--docs/algorithm_api.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/algorithm_api.md b/docs/algorithm_api.md
index 490771b5..40ff32d6 100644
--- a/docs/algorithm_api.md
+++ b/docs/algorithm_api.md
@@ -130,7 +130,7 @@ Iterate a container or a crange with chained `&&` filtering.
[ [Run this example](https://godbolt.org/z/n9aYrYPv8) ]
```c
-#include <stc/calgo.h>
+#include <stc/algorithm.h>
#include <stdio.h>
bool isPrime(long long i) {
@@ -309,8 +309,6 @@ The **checkauto** utility described below, ensures that the `c_auto*` macros are
| `continue` | Exit a defer-block without resource leak |
```c
-#include <stc/algo/raii.h> // or <stc/calgo.h>
-...
// `c_defer` executes the expression(s) when leaving scope.
// Note: does not require inclusion of "raii.h".
cstr s1 = cstr_lit("Hello"), s2 = cstr_lit("world");