summaryrefslogtreecommitdiffhomepage
path: root/include
AgeCommit message (Collapse)Author
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-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-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-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.
2022-04-22Readded push()/emplace() to all containers missing them. Made _hash function ↵Tyge Løvset
required for i_key_bind, _eq is derived from _cmp.
2022-04-22Swapped cstr.h with alt/cstr.h with SSO (short string optimization). #define ↵Tyge Løvset
STC_OLD_CSTR 1 to use previous string (only 8 byte rep).
2022-04-21Fix for i_key_bind hash and eq functions.Tyge Løvset
2022-04-21Switched to use i_key as primary template type parameter for all containers. ↵Tyge Løvset
Only maps will actually use i_val. Users can still specify i_val for non-maps, so there are no usability changes, other than the option to use i_key always, which makes the implementation and switching between container types simpler.
2022-04-21Fixed missing i_valclone -> i_keyclone copy when specifying i_val for sets ↵Tyge Lovset
(instead of i_key).
2022-04-20Minor adjustments.Tyge Løvset
2022-04-20Final carc / cbox cleanup.Tyge Løvset
2022-04-20Some cleanup after carc / cbox updates.Tyge Løvset
2022-04-20Support for cloning containers with carc and cbox.Tyge Lovset
Disabled emplace methods for containers with carc and cbox.
2022-04-19Renamed cbox_new/carc_new to cbox_make/carc_make. Disabled container emplace ↵Tyge Lovset
on arcbox elements.
2022-04-19Added #error/warnings for likely missing definitions of i_hash/i_cmp.Tyge Løvset
2022-04-18crandom.h: Renamed *_init(..) functions to *_new(..). Old names are kept but ↵Tyge Løvset
deprecated.
2022-04-18Renamed stc64_random() => crandom(), stc64_srandom(seed) => csrandom(seed). ↵Tyge Løvset
Kept old names for backward comp.
2022-04-18Renamed newly added map function put_r() to put_raw() - alias for ↵Tyge Lovset
emplace_or_assign() for symetri with insert_or_assign()/put(). Experimental, may be removed.
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-17alt/cstr.h (sso string): added cstr_replace_all(). Header examples updated ↵Tyge Løvset
to use cstr_str(&s) instead of s.str. Some docs updates.
2022-04-16Added at_mut() to some containers. Added put_r() to cmap, csmap as alias for ↵Tyge Løvset
emplace_or_assign().
2022-04-15Internal.Tyge Løvset
2022-04-15Adding comment to #endif's.Tyge Løvset
2022-04-15Merge branch 'master' of github.com:tylov/STCTyge Løvset
2022-04-15Updated README.md docs on template args! Reverted to put() as alias for ↵Tyge Løvset
insert_or_assign() for maps. Reverted/added push_back()/emplace_back()/pop_back() to cstack.
2022-04-11Fixed an potential issue with c_eq in template.h and missing usage in clist.hTyge Lovset
2022-04-11Added important parenthesizes around macro expressions.Tyge Løvset
2022-04-10Fixed regression bug: cqueue_pop() did pop_back(), fixed to do pop_front().Tyge Løvset
Removed pop() functions in clist and cdeq as they are no standard. push() will push_back() for both.
2022-04-10Parenthesized args in calls to i_keyfrom(c), i_keyto(p) i_valfrom(c), ↵Tyge Løvset
i_valto(p), and i_keydrop(p) - can be defined as macro without parenthesized args.
2022-04-10Parenthesized args in calls to i_cmp(x, y), i_eq(x, y) and i_hash(x, len) - ↵Tyge Løvset
can be defined as macro without parenthesized args.
2022-04-10Parenthesized calls to i_drop(x) - can be defined as macro without ↵Tyge Løvset
parenthesis around arg.
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-09Optimizing push_back() cvec/cdeq and some minor stuff.Tyge Lovset
2022-04-09Universally added a put() function to all containers.Tyge Løvset
2022-04-08Fix of previous commit (bug in bsearch).Tyge Løvset
2022-04-08Added cvec_X_lower_bound() function for sorted array search.Tyge Løvset
2022-04-08Update in template.h from previous commit.Tyge Løvset
2022-04-08Support to use i_val* input macro for sets (cset and csset).Tyge Løvset
2022-04-07More refactoring of cbits.h + minor changes in examples/benchmark.Tyge Løvset