summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2022-05-09Formatting only.Tyge Løvset
2022-05-09Small improvement in c_default_hash()Tyge Løvset
2022-05-07Updated alt/csmap.h to be synced with current csmap.h; alt-version allocates ↵Tyge Løvset
each node separately on the heap, regular uses an array. Now alt-version of csmap and cstr can be used by defining -DSTC_CSMAP_V1 and -DSTC_CSTR_V1 when compiling. Improved code readability by making line breaks after if and while (also cmap.h). Note, the alt-versions may be removed in the future, but the alt csmap.h may be made into an intrusive sorted map, where the creation and destruction of nodes must be done by the user.
2022-05-06Changed find_if() again. Now 3 iterator variants only.Tyge Løvset
2022-05-06Internal: made c_sv(lit) available after include ccommon.h and forward.hTyge Lovset
2022-05-06Made cstr_buffer() func. public, and docs for cstr_sv() - convert to csview.Tyge Lovset
2022-05-05Swapped two arguments in c_find_if/c_find_it. Changed c_container_of().Tyge Løvset
2022-05-05Added type-checked c_container_of() macro using typeof (C23, gcc, clang, ↵Tyge Løvset
tcc). c_unchecked_container_of() must be used by lib.
2022-05-04Update README.mdTyge Løvset
2022-05-04Small change in find_if/it macro + doc of index variable.Tyge Løvset
2022-05-04Missing includes because of change in cregex.hTyge Løvset
2022-05-04Added c_find_if, c_find_it macros: linear search in containers. Removed ↵Tyge Løvset
c_apply_cnt macro.
2022-05-03Minor adjustments to previous commit.Tyge Løvset
2022-05-03Added push front/back of existing nodes.Tyge Løvset
2022-05-02Merge branch 'master' of github.com:tylov/STCTyge Løvset
2022-05-02Fix linkage issue with clist_X_count().Tyge Løvset
2022-05-02Fixed undefined behaviour (but working) code in carc.Tyge Løvset
2022-05-02Some more fix in README.mdTyge Løvset
2022-05-02More doc fixes on i_keyclone, i_keyfrom and i_valclone, i_valfromTyge Løvset
2022-05-02A few more docs bugs fixed.Tyge Løvset
2022-05-01More changes to intro text.Tyge Løvset
2022-05-01Update README.mdTyge Løvset
2022-05-01Rewrote introduction section.Tyge Løvset
2022-05-01- Array expansions (insert, reserve, clone) are now checked for malloc ↵Tyge Lovset
nomem, and result can be checked by user in cvec, cdeq, cmap, csmap (cvec/cdeq insert functions now returns pointer, not iter). - Refactoring.
2022-04-29cmap/csmap cleanup incl. docs.Tyge Løvset
2022-04-28Update carc_api.mdTyge Løvset
2022-04-28_i_implement moved to user-level template parameter as i_implement. Removed ↵Tyge Løvset
i_opt flag c_implement. Removed OLD include/alt/clist.h
2022-04-28Finalized template.h logic.Tyge Løvset
2022-04-27Docs only update for carc/cbox.Tyge Løvset
2022-04-27Final fixes to carc and cbox; Reverted constructor name to make; (similarity ↵Tyge Løvset
to make_shared/make_unique in c++).
2022-04-27Updated examples.Tyge Løvset
2022-04-27Removed cbox_X_make() and carc_X_make() when i_rawval was not defined, i.e. ↵Tyge Løvset
like emplace is removed in other containers.
2022-04-27Bugfix: cbox didn't use i_keyclone, and therefore did not deep clone properly.Tyge Løvset
2022-04-27Added cstr_expand_uninitialized().Tyge Løvset
2022-04-27Simplifications possible due to previous commit.Tyge Løvset
2022-04-27Finally FIXED cloning/to/from scheme to work properly. When using ↵Tyge Løvset
i_key_bind/i_val_bind, a .._clone() function *must* always be defined. Functions .._from and .._toraw is only required when i_keyraw/i_valraw type is defined.
2022-04-27Internal string container clone optimization.Tyge Løvset
2022-04-26Added cvec_X_expand_uninitialized(). Renamed cvec_X_bsearch() to ↵Tyge Lovset
cvec_X_binary_search().
2022-04-25Some docs layout improvements.Tyge Lovset
2022-04-25More README docs.Tyge Lovset
2022-04-25Removed size argument to `i_hash` template parameter and `c_default_hash`. ↵Tyge Løvset
This was a "design error", and is not worth keeping for backward compability. Please update your code where you use i_hash template parameter (simply remove second argument).
2022-04-25Some maintainance. Updated sso_bench.cppTyge Løvset
2022-04-25Added lower_bound() examples with both sorted cvec and sorted set (csset).Tyge Løvset
2022-04-25Final cstr_str() docs update..Tyge Løvset
2022-04-24Updated docs to use cstr_str(&s) instead of s.strTyge Løvset
2022-04-24Merge pull request #21 from tylov/keyvalTyge Løvset
Version 3.5 RC
2022-04-24Fixed unfair comparison; std::move must be used in c++ push_back(). STC has ↵Tyge Løvset
almost identical performance to c++ STL, but STC cstr has 23 chars short strings vs typically 15 for c++ std::string, so STC is faster in this range.
2022-04-24Created VERSION 3.5. See News section in docs for changes.Tyge Løvset
2022-04-23Integrated (and removed) c_hash32 and c_hash64 into c_default_hash, which is ↵Tyge Løvset
improved. Added i_key_ssv and i_val_ssv (cstr with csview as raw-type).
2022-04-22Changed API for c*map_X_push() to take a entry pair (c*map_X_value) argument ↵Tyge Løvset
instead of key + val.