summaryrefslogtreecommitdiffhomepage
path: root/examples/priority.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-02-21 19:44:29 +0100
committerTyge Løvset <[email protected]>2021-02-21 19:44:29 +0100
commit9ad1de563150b5819a17ceb07e5bb1a83f39f2b4 (patch)
tree6b1e6fbf4dab50917b85642663c4a496199db1c6 /examples/priority.c
parentc609469b3eac08cc369f30a54cc737a3d9cadc3b (diff)
downloadSTC-modified-9ad1de563150b5819a17ceb07e5bb1a83f39f2b4.tar.gz
STC-modified-9ad1de563150b5819a17ceb07e5bb1a83f39f2b4.zip
Renamed emplace_put() to emplace_or_assign(). May add put() as alias to insert_or_assign().
Diffstat (limited to 'examples/priority.c')
-rw-r--r--examples/priority.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/priority.c b/examples/priority.c
index 4955a6aa..10e2f32a 100644
--- a/examples/priority.c
+++ b/examples/priority.c
@@ -20,7 +20,7 @@ int main() {
cpque_i_push(&heap, stc64_uniform(&rng, &dist));
// push some negative numbers too.
- c_emplace_n(&heap, cpque_i, {-231, -32, -873, -4, -343});
+ c_emplace_items(&heap, cpque_i, {-231, -32, -873, -4, -343});
c_forrange (N)
cpque_i_push(&heap, stc64_uniform(&rng, &dist));