summaryrefslogtreecommitdiffhomepage
path: root/docs/cpque_api.md
AgeCommit message (Collapse)Author
2023-07-21Renamed badly abbreviated names in crand.h.tylov
Moved coroutine.h from algo subfolder to stc. Updated coroutine.h and docs.
2023-07-18Renamed i_native_cmp => i_cmp_nativetylov
Added c_all_of(), c_any_of(), c_none_of() to algo/filter.h
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-03-30Added crand.h - Alternative API to crandom.h, which will be deprecated.Tyge Løvset
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-27Some missing files.Tyge 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-02-01Massive update from unsigned sizes and indices to signed.Tyge Lovset
2023-01-04Improved a few examples.Tyge Løvset
2022-12-23Experimental uppercase macros.Tyge Løvset
2022-12-19Some "internal" macros in ccommon.h made all caps.Tyge Løvset
2022-11-06Improved documentation of template parameters for all containers.Tyge Løvset
2022-10-19Reverted back to c_forrrange from c_forloop. Still available but deprecated.Tyge Løvset
2022-09-26DEPRECATED: c_forrange(): replaced with c_forloop(). This uses 'long long' ↵Tyge Løvset
as iter type, i.e. "%lld" printf format. crange_from() renamed to crange_make(). More docs.
2022-08-05Reduce usage of c_apply() macro.Tyge Løvset
2022-07-06Version 3.7. Make sure to check NEWS/Changes in README.md for a few ↵Tyge Løvset
code-breaking API changes.
2022-05-22Changed c_apply(v, ..) macro to make it more consistent with c_apply_arr(v, ↵Tyge Løvset
..) and c_foreach (i, ..): v changed to a pointer - not value. Note: also c_pair(v) is changed correspondingly, so usage with c_apply(v) is unchanged.
2022-05-02More doc fixes on i_keyclone, i_keyfrom and i_valclone, i_valfromTyge Løvset
2022-04-18crandom.h: Renamed *_init(..) functions to *_new(..). Old names are kept but ↵Tyge Løvset
deprecated.
2022-04-18Removed i_drop and i_from template specifiers to reduce redundancies and add ↵Tyge Lovset
clarity (error given if used): use i_valdrop/i_valfrom and i_keydrop/i_keyfrom instead. Added missing at_mut() function to cdeq.
2022-04-09- Switched from .._put() to .._push() as the "generic" method to add ↵Tyge Løvset
element to any container. - Changed clist_X_insert()/emplace() to clist_X_insert_at()/emplace_at() to make it consistent with cvec/cdeq. - Updated documentation.
2022-04-09Universally added a put() function to all containers.Tyge Løvset
2022-03-04Updated printf formatting to portable code. This was also to use ↵Tyge Løvset
http://winlibs.com gcc+clang with ucrt runtime-libs without warnings.
2021-12-30Update docs and impl. of cpque.hTyge Løvset
2021-12-22Changed the c_apply() and c_apply_pair() to one new c_apply() API. Added ↵Tyge Løvset
c_pair(v) for convenience.
2021-12-19First commit for Version 3 of STC. Main changes are consistent rename of ↵Tyge Løvset
'_del' to '_drop' and '_compare' to '_cmp'. Also i_key_ref (earlier i_key_sptr) and i_val_ref replaced by more general i_key_bind/i_val_bind.
2021-12-15Some improvements in cvec and cpque.Tyge Løvset
2021-12-14Fixed silly bug in cpque_X_pop(). Thanks to matthieugras. Added ↵Tyge Løvset
cpque_X_shrink_to_fit(). Fixed memory leak in example box2.c
2021-11-21Changed reverse() and resize() to return false if mem alloc failed.Tyge Løvset
2021-10-29Renamed ..._value_t -> ..._value, etc. Deprecated, still works for cvec, ↵Tyge Løvset
cdeq, cmap, csmap, cslist
2021-10-05Changed recommended order of defining template parameters.Tyge Løvset
2021-09-26More docs work.Tyge Løvset
2021-09-26Added some extensions to cstack and cpque. cstack can now be used as a ↵Tyge Løvset
vector-lite.
2021-09-23Cleanup: Replaced c_emplace() macro with more general ↵Tyge Løvset
c_apply()/c_apply_pair() macros, and removed c_var() macro. Removed CX_emplace_items() member functions in containers used by c_emplace().
2021-09-21Added copy(self, other) function to all containers. Fixed some docs.Tyge Løvset
2021-09-21Fixed input args documentation. Fixed carr2 and carr3 clone functions.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-19Replaced the two csptr doc examples with a better one. Same as sharedptr.c ↵Tyge Løvset
in examples.
2021-09-17Updated docs.Tyge Løvset
Added i_key_csptr, i_val_csptr input macros for very easy usage of shared pointers in containers.
2021-09-11Fixed docs for newstyle.Tyge Løvset
2021-09-09Updated examples in docs.Tyge Løvset
2021-05-24Split c_fordefer() into c_forvar() and c_fordefer() macros.Tyge Løvset
2021-05-24Renamed c_with => c_fordefer, and removed c_withvar. Macros were too ↵Tyge Løvset
deceiving and hid the fact that it was for-loops. Now it is more explicit.
2021-05-20Updated links to header files in docs.Tyge Løvset
2021-05-19More cleanups and refinements.Tyge Løvset
2021-05-05Changed some lesser used API in cvec and cdeq to be more consistent. ↵Tyge Løvset
Improved cdeq.
2021-04-17Changed c_emplace_items(&cont, ctype, {...}) macro with c_emplace(ctype, ↵Tyge Løvset
cont, {...}): consistent with c_init(ctype, cont, {...}).
2021-04-15NB! Changed API: *_erase_at(container, it) --> *_erase_it(container, it). ↵Tyge Løvset
cvec and cdeq insert_at() swapped with insert(). Docs update.