summaryrefslogtreecommitdiffhomepage
path: root/examples/sharedptr.c
AgeCommit message (Collapse)Author
2021-12-14Added and renamed some examples.Tyge Løvset
2021-12-14cstr_printf() now returns int like printf(). Minor updates in sharedptr.c ↵Tyge Løvset
example.
2021-12-12- Added **cbox** type: container of one element: similar to std::unique_ptr ↵Tyge Løvset
/ Rust Box. - Replaced example for **csptr** in docs. - Added [**c_forpair**](docs/ccommon_api.md) macro: for-loop with "structural binding" as in c++. - Deprecated *csptr_X_make()*. Renamed to *csptr_X_new()*. Corresponding **cbox** method is *cbox_X_new()*. - Deprecated *c_default_fromraw(raw)*. Renamed to *c_default_clone(raw)*. - Deprecated `i_key_csptr` / `i_val_csptr`. Use `i_key_ref` / `i_val_ref` when specifying containers with **csptr** or **cbox** elements. - Deprecated `i_cnt`. Use `i_type` instead to define the full container type name. - Bugfixes and docs updates.
2021-10-28updated shootouts, fixed some warningsTyge Løvset
2021-10-02Some example improvements.Tyge Løvset
2021-09-29Changed how to specify shared pointers in containers.Tyge Løvset
2021-09-28Added c_apply_n() and c_apply_pair_n() macros. Rewrote cpque.c example.Tyge Løvset
2021-09-21Added copy(self, other) function to all containers. Fixed some docs.Tyge Løvset
2021-09-20Renamed macros: breaking changes for Version 2.0!Tyge Lovset
c_forvar => c_autovar c_forscope => c_autoscope c_forauto => c_auto Removed: c_fordefer(x); use c_forscope(0, x) instead. Added: c_exitauto; // continue
2021-09-19Corrected example output.Tyge Løvset
2021-09-19Replaced the two csptr doc examples with a better one. Same as sharedptr.c ↵Tyge Løvset
in examples.
2021-09-19Preparation for merging in V2.0 to master branch.Tyge Løvset
2021-09-18Changed the sharedptr.c example. Removed clist_X_erase(): was alias of ↵Tyge Løvset
clist_X_erase_at().
2021-09-17Added example sharedptr.c and fixed some doc.Tyge Løvset