Skip to content

Commit a77bc4d

Browse files
authored
Merge pull request #61019 from hyp/update-status-docs
[cxx-interop] update reverse interop status docs
2 parents a975241 + 0914496 commit a77bc4d

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docs/CppInteroperability/CppInteroperabilityStatus.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,32 @@ This status table describes which of the following Swift language features have
178178

179179
| **Swift Language Feature** | **Implemented Experimental Support For Using It In C++** |
180180
|--------------------------------|----------------------------------------------------------|
181-
| Instance methods | Yes, for structs and classes only |
181+
| Instance methods | Yes |
182182
| Static methods | No |
183183

184184
**Properties**
185185

186186
| **Swift Language Feature** | **Implemented Experimental Support For Using It In C++** |
187187
|--------------------------------|----------------------------------------------------------|
188-
| Getter accessors | Yes, via `get<name>`. Boolean properties that start with `is` or `has` are remapped directly to a getter method using their original name. For structs and classes only |
189-
| Setter accessors | Yes, via `set<name>`. For structs and classes only |
188+
| Getter accessors | Yes, via `get<name>`. Boolean properties that start with `is` or `has` are remapped directly to a getter method using their original name |
189+
| Setter accessors | Yes, via `set<name>` |
190190
| Mutation accessors | No |
191+
192+
**Generics**
193+
194+
| **Swift Language Feature** | **Implemented Experimental Support For Using It In C++** |
195+
|------------------------------|----------------------------------------------------------|
196+
| Generic functions | Partially, only without generic constraints |
197+
| Generic methods | Partially, only without generic constraints |
198+
| Generic `struct` types | Partially, only without generic constraints and less than 4 generic parameters |
199+
| Generic `enum` types | No |
200+
| Generic `class` types | No |
201+
202+
### Swift standard library
203+
204+
This status table describes which of the following Swift standard library APIs have some experimental support for using them in C++.
205+
206+
| **Swift Library Type** | **Can be used from C++** |
207+
|--------------------------------|----------------------------------------------------------|
208+
| `String` | Can be used as a type in C++. APIs in extensions are not exposed to C++ |
209+
| `Array<T>` | Can be used as a type in C++. APIs in extensions are not exposed to C++ |

0 commit comments

Comments
 (0)