Closed Bug 1324829 Opened 3 years ago Closed 3 years ago

Add mozilla::Result::andThen

Categories

(Core :: MFBT, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: fitzgen, Assigned: fitzgen)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1324828 +++

Given a Result<T, E> and a function T -> Result<U, E>, we should produce a Result<U, E>.
Assignee: nobody → nfitzgerald
More decltype magic ;)
Attachment #8820461 - Flags: review?(nfroyd)
Attachment #8820461 - Flags: review?(nfroyd) → review+
Pushed by nfitzgerald@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ba0c8f91cc85
Add the `mozilla::Result::andThen` method; r=froydnj
https://hg.mozilla.org/mozilla-central/rev/ba0c8f91cc85
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.