Typedef foxglove::FoxgloveResult¶
Defined in File error.hpp
Typedef Documentation¶
-
template<typename T>
using foxglove::FoxgloveResult = expected<T, FoxgloveError>¶ A result type for Foxglove operations.
This is similar to
Result
from std::expected (C++23).You can determine if the result is successful by checking
.has_value()
. If the result is successful, error will be FoxgloveError::Ok and the expected data can be unwrapped with.value()
. Otherwise, the error type can be extracted with.error()
.- Template Parameters:
T – The type of the success value returned by the operation.