summaryrefslogtreecommitdiffhomepage
path: root/docs/cvec_api.md
AgeCommit message (Collapse)Author
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-13Renamed constructor *cstr_lit()* to `cstr_new(lit)`.Tyge Løvset
Renamed *cstr_assign_fmt()* to `cstr_printf()`. Renamed cbits_from_str() to cbits_from().
2021-11-21BREAKING CHANGE: Replaced c_new(T) with c_new(T, ...). This now is similar ↵Tyge Løvset
to the c++ new operator. The previous c_new(T) is renamed to c_alloc(T), and c_new_n(T,n) => c_alloc_n(T,n). Old usage of c_new() will fail as it requires additional argument. Sorry for the inconvenience.
2021-11-03Renamed cnt_X_getmut() to cnt_X_get_mut().Tyge Lovset
2021-11-03Update container_X_getmut() for mutable version.Tyge Løvset
2021-11-03Changed container_X_get() and container_X_at() to return const value* (or ↵Tyge Løvset
const mapped*). Added container_X_getmut() for mutable version. Updated docs.
2021-10-30Fixed docs alignments.Tyge Løvset
2021-10-29Renamed ..._value_t -> ..._value, etc. Deprecated, still works for cvec, ↵Tyge Løvset
cdeq, cmap, csmap, cslist
2021-10-26Added some examples and updated docs. Removed cvec_X_erase() and ↵Tyge Løvset
cdeq_X_erase() - may be used wrong. Use cvec_X_erase_n() instead. Fixed type-bug in cpque.h (same was in cqueue.h).
2021-10-06Some while to for changed. Return value for cstack_X_push/emplace. Docs updated.Tyge Løvset
2021-10-05Changed recommended order of defining template parameters.Tyge Løvset
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-23Some more documentation in README.md.Tyge Løvset
Added support for i_del template arg/define for destroy function. For maps, i_keydel / i_valdel is still required and error is given if i_del is defined.
2021-09-22Renamed Value => i_val in documentation.Tyge Løvset
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-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-09Updated examples in docs.Tyge Løvset
2021-08-29Replaced cstr_toraw (deprecated) with cstr_str used to convert from cstr to ↵Tyge Lovset
const char*.
2021-05-22Added *_value_toraw() methods to base containers.Tyge Løvset
2021-05-20Updated links to header files in docs.Tyge Løvset
2021-05-10Some c_rawstr_*() functions were not updated in documentation.Tyge Løvset
2021-05-07Cleanup, internal renames. API: c_strhash() -> c_string_hash(), added adv() ↵Tyge Løvset
and ind() to cvec and cdeq.
2021-05-06Added erase() for cvec, cdeq and clist for consistency.Tyge Løvset
2021-05-05Changed some lesser used API in cvec and cdeq to be more consistent. ↵Tyge Løvset
Improved cdeq.
2021-05-04Added get() method to cvec, cdeq, clist, cmap, csmap. Restructured ↵Tyge Løvset
emplace/insert api on cvec, will be done on cdeq as well. General internal coding improvements.
2021-04-23API: Reverted to C_X_erase_at() instead of C_X_erase_it(). Sorry for the ↵Tyge Løvset
mess. Internal reorder of STC_API methods.
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-16Fixed bug: cmap_erase_it() return iterator. Fixed mem-leak in ↵Tyge Løvset
cdeq_X_insert() and cvec_X_insert(). Added iterator invalidation documentation.
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.
2021-04-08Big change set to simplify the internal templating implementations. Shorter ↵Tyge Løvset
and more readable code. Removed C_X_itval() as they are no longer needed. API is to use *it.ref
2021-03-30Moved cset and csset definitions to cset.h and csset.h. Updated docs.Tyge Løvset
2021-03-24Removed separate ## Header section in docs.Tyge Løvset
2021-03-24Cleanup in documentation.Tyge Løvset
2021-03-19Added clear() to cpque, cstack, cqueue, cbits, even though not in STL. ↵Tyge Løvset
Code/docs formatting.
2021-03-07Corrected more constness.Tyge Løvset
2021-03-03Removed cstr_t from docs (use cstr).Tyge Løvset
2021-03-03Some general doc changes.Tyge Løvset
2021-02-22Added destructor comment and value_clone docs.Tyge Løvset
2021-02-22Minor map doc fix and cleanups.Tyge Løvset
2021-02-22Many internal renames. Reverted to specify both _del and _clone parameter ↵Tyge Løvset
when giving _del.
2021-02-21Updates outdated docs.Tyge Løvset
2021-02-21Renamed emplace_put() to emplace_or_assign(). May add put() as alias to ↵Tyge Løvset
insert_or_assign().
2021-02-21Internal restructure. Added bsearch() to cvec.Tyge Løvset
2021-02-20Renamed push_items to emplace_nTyge Løvset
2021-02-20Internal renaming improvements.Tyge Løvset
2021-02-20Rewamp of cmap/csmap API. More to come.Tyge Løvset
2021-02-04Fixup in API regarding _at() - more consistent.Tyge Løvset