Skip to content

Commit 3058de9

Browse files
committed
[cxx-interop] Document std::unique_ptr support
1 parent 3d80633 commit 3058de9

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

documentation/cxx-interop/index.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,11 +1285,6 @@ The C++ caller of this function is responsible for releasing the object.
12851285
The `SWIFT_UNSAFE_REFERENCE` annotation macro has the same effect as `SWIFT_IMMORTAL_REFERENCE`
12861286
annotation macro. However, it communicates different semantics: the type is intended to be used unsafely, rather than living for the duration of the program.
12871287

1288-
### Unique Reference Types
1289-
1290-
Unique reference types, such as types passed around by `std::unique_ptr` are
1291-
not yet supported by Swift.
1292-
12931288
## Using C++ Standard Library from Swift
12941289

12951290
This section describes how to import the C++ standard library, and how

documentation/cxx-interop/status/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,11 @@ The following C++ standard library types are supported in Swift:
196196
- Specializations of `std::set`, `std::multiset` and `std::unordered_set`
197197
- Specializations of `std::optional`
198198
- Specializations of `std::shared_ptr`
199+
- Specializations of `std::unique_ptr`
199200
- Specializations of `std::array`
200201

201-
Other standard library types, like `std::unique_ptr`, `std::function` and
202-
`std::variant` are not yet supported in Swift.
202+
Other standard library types, like `std::function` and `std::variant`, are not
203+
yet supported in Swift.
203204

204205
### Other C++ Features Handled by Swift
205206

0 commit comments

Comments
 (0)