diff options
| author | Tyge Løvset <[email protected]> | 2022-04-08 17:13:15 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-08 17:13:15 +0200 |
| commit | 770764da916b9e3783f2a95b2da62cb930b6702b (patch) | |
| tree | e68c5805afe38023a1dd386eb098dc0e3f1eecaf /README.md | |
| parent | 3eb276a712cc5edad798e2c75acfe125de831243 (diff) | |
| download | STC-modified-770764da916b9e3783f2a95b2da62cb930b6702b.tar.gz STC-modified-770764da916b9e3783f2a95b2da62cb930b6702b.zip | |
Added cvec_X_lower_bound() function for sorted array search.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -340,7 +340,7 @@ c_autovar (cstr s = cstr_new("a string literal"), cstr_drop(&s)) // c_autovar i cvec_str_emplace_back(&vec, "Yay, literal"); // internally constructs cstr from const char* cvec_str_emplace_back(&vec, cstr_clone(s)); // <-- COMPILE ERROR: expects const char* - cvec_str_emplace_back(&vec, s.str); // Ok: const char* input type. + cvec_str_emplace_back(&vec, cstr_str(&s)); // Ok: const char* input type. } ``` This is made possible because the type configuration may be given an optional |
