swift
919eea70 - [cxx-interop] Add `CxxDictionary` protocol for `std::map` ergonomics

Commit
3 years ago
[cxx-interop] Add `CxxDictionary` protocol for `std::map` ergonomics This adds a protocol to the C++ standard library overlay which will improve the ergonomics of `std::map` and `std::unordered_map` when used from Swift code. As of now, `CxxDictionary` adds a subscript with an optional return type that mimics the subscript of `Swift.Dictionary`. Similar to https://github.com/apple/swift/pull/63244.
Author
Committer
Parents
Loading