summaryrefslogtreecommitdiffhomepage
path: root/examples/inits.c
AgeCommit message (Collapse)Author
2020-11-03renamed __init to _initsTyge Løvset
2020-11-02Changed (half)-internal *_INIT to *__init macros. Minor reformatting.Tyge Løvset
2020-10-26Updates examples using cfmt.h c_print().Tyge Løvset
2020-10-14Renamed cstr() constructor to cstr_from(), cstr_from() to cstr_from_fmt().Tyge Løvset
2020-10-01Renamed cpqueue build() to make_heap()Tyge Løvset
2020-09-24Changed iter.get to iter.val member. Internal, but used external. Will not ↵Tyge Løvset
change again.
2020-09-20Possible to redefine STC memory allocator globally.Tyge Løvset
2020-09-18Changed <container>_ini macro constant to <container>_INIT, and ↵Tyge Løvset
<container>_destroy() to <container>_del.
2020-09-17Fixed range methods in cvec, and renamed typename_<container>(..) to ↵Tyge Løvset
using_<container>(..).
2020-09-16Changed iterator API in cset and clist. From i.get->value to *i.getTyge Løvset
2020-09-16Changed earlier declare_<container>(..) macro to typedef_<container>(..)Tyge Løvset
2020-09-16Renamed two public macros.Tyge Løvset
2020-09-16Changed API to conform with std:: containers. cmap now only use first, ↵Tyge Løvset
second. for result and value types.
2020-09-15Simplified declare_ statement e.g. c_cmap(...)Tyge Løvset
2020-09-15New API Change.Tyge Løvset
2020-09-14Renamed result_t type members to first, second (from item, inserted) for ↵Tyge Løvset
conformance with std::pair
2020-09-14Got rid of c_items() macro.Tyge Løvset
2020-09-10Use cmap_emplace() rather than cmap_insert(). insert() is reduced to an ↵Tyge Løvset
alias of emplace() because it makes no sense using the std::unordered_map API.
2020-09-10Renaming in cvec and some additions in clist.Tyge Løvset
2020-09-07Added back cmap insert()tylo
2020-09-06Renamed push_****(), _insert() to _emplace(). added insert_or_assign(), etc.Tyge Løvset
2020-09-03Changed constant <container>_init to <container>_ini to avoid conflict with ↵Tyge Løvset
<container>_init() method. Reverted name cprique back to cpqueue.
2020-09-02Added cqueue.h, cstack.h and renamed cpqueue.h to cprique.hTyge Løvset
2020-09-02Added cqueue.h and cstack.h adapters. Updated cpqueue.h API to be more ↵Tyge Løvset
consistent.
2020-09-02Updated pqueue_top() API. Added c_destroy() also working for cstr, cbitmap.Tyge Løvset
2020-09-02Rewrote cpqueue to a real adapter class. Added some missing functions in ↵Tyge Løvset
cvec, clist, cmap. Added c_init() and c_destroy() generic algoritms on containers.
2020-08-28Finished adding RawValue API (convertable values) to containers.tylo
2020-08-16Fixed comparison in inits.c. Added iterator in bits.c example.Tyge Løvset
2020-08-01Renamed files cvec_pq.h --> cpqueue.h and crand.h --> crandom.hTyge Løvset
2020-07-30Small tweak.Tyge Løvset
2020-07-30Various cleanup of examples and READM.md. Added support for popcount on ↵Tyge Løvset
compilers without intrinsics.
2020-07-30Renamed cvecpq.h to cvec_pq.h and changed API. Added pqueue initialization ↵Tyge Løvset
example in inits.c. Documented my 64bit PRNG engine.
2020-07-29Renamed crandom.h to crand.h + Changed API. Renamed coptget.h to copt.h.Tyge Løvset
2020-07-28Lowercase namingTyge Løvset
2020-07-27API CHANGES: Made types all lower case. E.g.: CMap_<tag> => cmap_<tag>, ↵Tyge Løvset
CList_<tag> => clist_<tag>. Note: CStr => cstr_t, CBitset => cbitset_t
2020-07-27Renamed cmap_xx_at() to cmap_xx_insert(). Does insert like c++ ↵Tyge Løvset
std::map::insert(), rust HashMap::insert() Updated cstr_hashRaw() to djb2() algorithm.
2020-07-23Added generic c_push(.., items) to push a list of items onto the containers.Tyge Løvset
2020-07-22Fixed cmap_xx_clear()Tyge Løvset
2020-07-22Add some examples.Tyge Løvset