[ox/std] Add moveTo method to Result

(synced from fb7b582348)
This commit is contained in:
2021-03-20 15:32:13 -05:00
parent 4af4d6a857
commit 3642083c54
+5
View File
@@ -89,6 +89,11 @@ struct [[nodiscard]] Result {
return error;
}
constexpr Error moveTo(T *val) noexcept {
*val = ox::move(value);
return error;
}
};
namespace detail {