summaryrefslogtreecommitdiffhomepage
path: root/examples/sptr_ex.c
AgeCommit message (Collapse)Author
2021-12-14Added and renamed some examples.Tyge Løvset
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-11-24Deprecated c_no_compare(). Define i_cmp_none instead when you have/want no ↵Tyge Løvset
element comparison for cvec, cdeq, clist, csptr. Will give compile time error if functions depending on comparisons are used.
2021-10-29Swapped .._equals() and _equalto() functions for consistencyTyge Løvset
2021-10-28updated shootouts, fixed some warningsTyge Løvset
2021-09-30Update sptr_ex.cTyge Løvset
2021-09-30More cleanup. i_fwd is rarely needed, so removed F_tag. Use i_fwd define ↵Tyge Løvset
flag instead.
2021-09-29Changed forward declaration to support user defined container names with i_cnt.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-24Reworked csptr docs. Made static members to inline (ccommon.h).Tyge Løvset
2021-09-23Added sptr_ex.c example + minors.Tyge Løvset