Open
Bug 1698418
Opened 4 years ago
Updated 4 years ago
Maybe::apply and map should have rvalue-qualified versions
Categories
(Core :: MFBT, enhancement)
Core
MFBT
Tracking
()
NEW
People
(Reporter: mozbugz, Unassigned)
References
Details
As a follow-up to bug 1500811 (rvalue-qualified accessors), it would be nice if Maybe
's apply
and map
functions had rvalue-qualified versions.
This way, the contents (if any) could be moved to the callback, e.g.:
GetMaybeThing().apply([](Thing&& aThing) {
/* Steal contents from aThing */
});
You need to log in
before you can comment on or make changes to this bug.
Description
•