From fb39cd5db944d13b6de110885081e483234b453f Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylov@users.noreply.github.com> Date: Wed, 15 Jun 2022 16:36:43 +0200 Subject: Update carc_api.md --- docs/carc_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/carc_api.md b/docs/carc_api.md index 2ab61791..bdab2533 100644 --- a/docs/carc_api.md +++ b/docs/carc_api.md @@ -13,7 +13,7 @@ All **carc** functions can be called by multiple threads on different instances additional synchronization even if these instances are copies and share ownership of the same object. **carc** uses thread-safe atomic reference counting, through the *carc_X_clone()* and *carc_X_drop()* methods. -When declaring a container with shared pointers, define `i_val_bind` as the carc type, see example. +When declaring a container with shared pointers, define `i_val_arcbox` with the carc type, see example. See similar c++ class [std::shared_ptr](https://en.cppreference.com/w/cpp/memory/shared_ptr) for a functional reference, or Rust [std::sync::Arc](https://doc.rust-lang.org/std/sync/struct.Arc.html) / [std::rc::Rc](https://doc.rust-lang.org/std/rc/struct.Rc.html). -- cgit v1.2.3