Files
swift-mirror/stdlib/public/Cxx/std/std_span.apinotes
Gabor Horvath 43cef148cb [cxx-interop] Do not consider std::span<T>::size and co unsafe
Since these APIs operate on unsafes we consider them unsafe by default.
This PR adds APINotes to override these defaults as these APIs will not
touch the underlying buffer. This should slightly reduce the number of
`unsafe`s in user code.

rdar://159839254
2025-09-25 11:28:26 +01:00

15 lines
254 B
Plaintext

Name: std_span
Namespaces:
- Name: std
Tags:
- Name: span
Methods:
- Name: data
SwiftName: __dataUnsafe()
- Name: size
SwiftSafety: safe
- Name: size_bytes
SwiftSafety: safe
- Name: empty
SwiftSafety: safe