This is a convenience only, but it's much more straightforward than the expression `key_addr = KeyAddr(KeyAddr::invalide_state)` or the overly enigmatic `key_addr = KeyAddr()`. `KeyAddr::none()` is meant to be useful for initialization of variables: `KeyAddr my_addr = KeyAddr::none()` `KeyAddr::clear()` is meant to be the counterpart of the `isValid()` test, to set an existing variable to an invalid address: `my_addr.clear()` vs `if (my_addr.isValid()) ...` Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>pull/982/head
parent
780edea8b0
commit
d7db7c2670
Loading…
Reference in new issue