mirror of
https://github.com/boostorg/optional.git
synced 2025-07-31 21:14:31 +02:00
spelling: nonexistent
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
committed by
Andrzej Krzemienski
parent
ba1846abd3
commit
a4479bf8cd
@@ -44,7 +44,7 @@ This is because we know that string value `"100"` converts to a valid value of `
|
||||
// deal with it
|
||||
}
|
||||
|
||||
This version throws an exception upon an attempt to access a non-existent contained value. If your way of dealing with the missing value is to use some default, like `0`, there exists a yet another alternative:
|
||||
This version throws an exception upon an attempt to access a nonexistent contained value. If your way of dealing with the missing value is to use some default, like `0`, there exists a yet another alternative:
|
||||
|
||||
int k = convert(text).value_or(0);
|
||||
|
||||
|
Reference in New Issue
Block a user