[ox/std] Add moveTo method to Result

This commit is contained in:
Gary Talent 2021-03-20 15:32:13 -05:00
parent 47a43fecb1
commit fb7b582348

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 {