Signature
void DValue::clear()
Parameters
return value : none
Clears the value into an empty map-shaped value and resets its array index. Unlike set_array(), this does not set list mode.
Example
DValue u;
u["a"] = "1"; u["b"] = "2";
u.clear();
print("after clear, has a: ", u.has("a") ? "yes" : "no", "\n");
Output
after clear, has a: no