Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions documentation/cxx-interop/status/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,17 @@ type of such data member is supported in Swift.

The following C++ standard library types are supported in Swift:

- `std::string`, `std::u16string`, `std::u32string`
- Specializations of `std::pair`
- Specializations of `std::vector`
- Specializations of `std::map` and `std::unordered_map`
- Specializations of `std::set`, `std::multiset` and `std::unordered_set`
- Specializations of `std::optional`
- Specializations of `std::shared_ptr`
- Specializations of `std::unique_ptr`
- Specializations of `std::array`

Other standard library types, like `std::function` and `std::variant`, are not
yet supported in Swift.
- `std::string`, `std::u16string`, `std::u32string`, `std::string_view`
- Specializations of `std::pair` and `std::optional`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: did you group std::pair and std::optional together for a reason?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I did so here e4f57d6 since they're both small type-level combinators for structuring values

- Specializations of `std::vector`, `std::array`, and `std::span`
- Specializations of `std::map`, `std::unordered_map` and `std::multimap`
- Specializations of `std::set`, `std::unordered_set` and `std::multiset`
- Specializations of `std::shared_ptr` and `std::unique_ptr` (not supported on Windows)
- Specializations of `std::function`
- `std::chrono::seconds`, `std::chrono::milliseconds`, `std::chrono::microseconds` and `std::chrono::nanoseconds`

Other standard library types, like `std::tuple` and `std::variant`, are not
yet fully supported in Swift.

### Other C++ Features Handled by Swift

Expand Down
Loading