21template <
typename T>
class Result
31 return Result(
false,
error, T{});
34 constexpr explicit operator bool()
const
39 constexpr bool ok()
const
49 constexpr const T &
value()
const
constexpr const T & value() const
constexpr bool ok() const
constexpr ErrorCode error() const
static constexpr Result success(const T &value)
static constexpr Result failure(ErrorCode error)
@ bytecode_version_mismatch