gHashTableToD

Template to convert a GHashTable to a D associative array. K: The key D type V: The value D type owned: Set to true if caller takes ownership of hash (frees it), false to leave it alone (default)

V[K]
gHashTableToD
()
if (
(
is(K == string) ||
is(K == const(void)*)
)
&&
(
is(V : ObjectG) ||
is(V == interface)
||
is(V == string)
||
is(V == void*)
)
)

Parameters

hash GHashTable*

The hash table to convert

Return Value

Type: V[K]

The D associative array which is a copy of the data in hash