add bool cast to hash table for init
This commit is contained in:
parent
f3d1f551cc
commit
a12e8c21e2
@ -513,6 +513,11 @@ struct HashTable(K, V)
|
|||||||
u64 node_count;
|
u64 node_count;
|
||||||
u64 list_count;
|
u64 list_count;
|
||||||
|
|
||||||
|
bool opCast(T)() if(is(T == bool))
|
||||||
|
{
|
||||||
|
return cast(bool)this.list_count;
|
||||||
|
}
|
||||||
|
|
||||||
void opIndexAssign(V value, K key)
|
void opIndexAssign(V value, K key)
|
||||||
{
|
{
|
||||||
Push(&this, key, value);
|
Push(&this, key, value);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user