summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/functor.c
AgeCommit message (Collapse)Author
2023-07-20Moved examples to sub-directories. Added cotask1.c cotask2.c examples.tylov
2023-07-15Improved warning, and other enhancements in ccommon.htylov
2023-07-12Changed docs and examples to use i_key* template parameters instead of ↵tylov
i_val* for all non-maps. Renamed c_ASSERT() to c_assert() and added optional message parameter to c_static_assert().
2023-07-03Simplified extend.h a bit.Tyge Løvset
2023-05-18Renamed template param i_con => i_base in stc/extend.h. Also the macro ↵Tyge Løvset
c_getcon(self) => c_extend(self).
2023-04-08More docs updates, and a change in stc/extend.h.Tyge Lovset
2023-04-07More docs updating.Tyge Lovset
2023-04-01Update of stc/extend.hTyge Lovset
2023-03-31Added stc/extend.h: A generalized way to type-safely extend a container with ↵Tyge Lovset
new members which can be accessed from the template parameters. See examples/functor.c
2023-03-29Removed i_less_functor, i_cmp_functor, i_eq_functor and i_hash_functor: not ↵Tyge Lovset
needed. Simplified cvec_X_eq() and cdeq_X_eq()
2023-03-27More RAII cleanup in examples. Also removed gauss1.c and new_deq.cTyge Løvset
2023-03-26development branch for 4.2Tyge Løvset
Removed uses of c_auto and c_with in documentation examples and code examples. Still using c_defer a few places. Renamed c11/fmt.h to c11/print.h. Some additions in ccommon.h, e.g. c_const_cast(T, x). Improved docs.
2023-02-08Changed to use lowercase flow-control macros in examples (uppercase will ↵Tyge Løvset
still be supported). Improved many examples to use c_make() to init containers.
2023-01-19Finish last commit. Most safe function macros are now preferred lowercase, ↵Tyge Løvset
whereas flow control macros (c_FOREACH, ..) are preferred uppercase.
2023-01-04Improved a few examples.Tyge Løvset