diff options
| author | Tyge Løvset <[email protected]> | 2021-02-20 17:36:17 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-02-20 17:36:17 +0100 |
| commit | 6f2807ac42a42d42aea9b34c89b0cbbd5755fe49 (patch) | |
| tree | 6fddb49da547004315cd8b72a4f26259da689e1c /docs/cpque_api.md | |
| parent | 4d9378ef420b4787208a742057a60dcf408ef741 (diff) | |
| download | STC-modified-6f2807ac42a42d42aea9b34c89b0cbbd5755fe49.tar.gz STC-modified-6f2807ac42a42d42aea9b34c89b0cbbd5755fe49.zip | |
Renamed push_items to emplace_n
Diffstat (limited to 'docs/cpque_api.md')
| -rw-r--r-- | docs/cpque_api.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/cpque_api.md b/docs/cpque_api.md index badc6315..d2a5d8e0 100644 --- a/docs/cpque_api.md +++ b/docs/cpque_api.md @@ -41,7 +41,7 @@ cpque_X_value_t* cpque_X_top(const cpque_X* self); void cpque_X_push(cpque_X* self, cpque_X_value_t value); void cpque_X_emplace(cpque_X* self, cpque_X_rawvalue_t raw); -void cpque_X_push_n(cpque_X *self, const cpque_X_rawvalue_t arr[], size_t size); +void cpque_X_emplace_n(cpque_X *self, const cpque_X_rawvalue_t arr[], size_t size); void cpque_X_pop(cpque_X* self); void cpque_X_erase_at(cpque_X* self, size_t idx); @@ -76,7 +76,7 @@ int main() // Push ten million random numbers to priority queue, plus some negative ones. c_forrange (N) cpque_i_push(&heap, stc64_uniform(&rng, &dist)); - c_push_items(&heap, cpque_i, {-231, -32, -873, -4, -343}); + c_emplace_n(&heap, cpque_i, {-231, -32, -873, -4, -343}); // Extract and display the fifty smallest. c_forrange (50) { |
