cesium-native 0.43.0
|
Holds the result of an operation. If the operation succeeds, it will provide a value. It may also provide errors and warnings. More...
#include <CesiumUtility/Result.h>
Public Member Functions | |
Result (T value_) noexcept | |
Creates a Result with the given value and an empty ErrorList. | |
Result (T value_, ErrorList errors_) noexcept | |
Creates a Result with the given value and ErrorList. | |
Result (ErrorList errors_) noexcept | |
Creates a Result with an empty value and the given ErrorList. | |
Public Attributes | |
std::optional< T > | value |
The value, if the operation succeeded to the point where it can provide one. | |
ErrorList | errors |
The errors and warnings that occurred during the operation. | |
Holds the result of an operation. If the operation succeeds, it will provide a value. It may also provide errors and warnings.
T | The type of value included in the result. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
ErrorList CesiumUtility::Result< T >::errors |
std::optional<T> CesiumUtility::Result< T >::value |