HashCollection.update

If key is present, call update for every value; otherwise, add new value with create.

struct HashCollection(K, V, bool ordered, bool multi)
static if(haveValues)
void
update
(
C
U
)
(
auto ref K key
,
scope C create
,
scope U update
)
if (
is(typeof(create()) : V) &&
(
is(UpdateFuncRT!U : V) ||
is(UpdateFuncRT!U == void)
)
)

Meta