Details
Details
- Reviewers
dblaikie
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Could you link to the spec for std::experimental::optional somewhere?
What's the form of this operation in std::experimental::optional? Should we move towards matching that interface more precisely so we can one day remove our custom implementation?
Comment Actions
Link added in description and here: API, spec.
std::experimental::optional has the same signature but calls this operation value_or. We also have getValue (value in the TS), and getPointer and hasValue (no TS equivalent). I think I'd rather match what we're doing now, and switch everything together if we get to that point.