swift
a12986ad - [cxx-interop] Add `CxxOptional` protocol for `std::optional` ergonomics

Commit
2 years ago
[cxx-interop] Add `CxxOptional` protocol for `std::optional` ergonomics This adds a protocol to the C++ standard library overlay which will improve the ergonomics of `std::optional` when used from Swift code. As of now, the overlay adds an initializer of `Swift.Optional` that takes an instance of `CxxOptional` as a parameter.
Author
Committer
Parents
Loading