Returns the held value by move, or a fallback when the result holds an error.
Synopsis
Declared in <util/result.h>
template<class U>
T
value_or(U&& default_value) &&;
Return Value
the stored value if present, otherwise default_value
Parameters
Name |
Description |
default_value |
the value returned when no value is held |
Created with MrDocs