Signature
void DValue::set_bool(bool b)
Parameters
b : boolean value to store
return value : none
Stores a boolean value, forwarding through references when possible.
Example
DValue flag; flag.set_bool(true); print(flag.to_bool() ? "true" : "false", "\n");
Output
true