3 #include <CesiumUtility/ErrorList.h>
4 #include <CesiumUtility/IntrusivePointer.h>
16 template <
typename T>
struct Result {
20 :
value(std::move(value_)),
errors(std::move(errors_)) {}
51 : pValue(std::move(pValue_)),
errors() {}
54 : pValue(std::move(pValue_)),
errors(std::move(errors_)) {}
57 : pValue(
nullptr),
errors(std::move(errors_)) {}
A smart pointer that calls addReference and releaseReference on the controlled object.
Utility classes for Cesium.
The container to store the error and warning list when loading a tile or glTF content.
CesiumUtility::IntrusivePointer< T > pValue
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....
ErrorList errors
The errors and warnings that occurred during the operation.
std::optional< T > value
The value, if the operation succeeded to the point where it can provide one.