From 815dfc3e12f127d3c55438b0f784aa515e3812a5 Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylov@users.noreply.github.com> Date: Sun, 3 Jan 2021 23:04:33 +0100 Subject: Update cptr_api.md --- docs/cptr_api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cptr_api.md b/docs/cptr_api.md index 7cc7aa88..1fa344ae 100644 --- a/docs/cptr_api.md +++ b/docs/cptr_api.md @@ -14,12 +14,12 @@ Raw pointers and shared pointers (**csptr**) may be used as items of containers. #define using_csptr(X, Value, valueCompare=c_default_compare, valueDestroy=c_default_del, - valueClone=c_default_clone) + valueClone=ignored) ``` The macro `using_cptr()` must be instantiated in the global scope. `X` is a type tag name and will affect the names of all cptr types and methods. E.g. declaring `using_cptr(my, cvec_my);`, `X` should be replaced by `my` in all of the following documentation. -Note that if valueDestroy is specified and not *valueClone*, it expects *Value_clone* to be defined +Note: for shared-ptr csptr, "cloning" is done by pointer sharing (ref counting), so valueClone is not required and ignored. Types -- cgit v1.2.3