Files
swift-mirror/stdlib/public/Cxx/std/std_string_view.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
266 B
Plaintext

Name: std_string_view
Namespaces:
- Name: std
Tags:
- Name: basic_string_view
Methods:
- Name: size
SwiftSafety: safe
- Name: max_size
SwiftSafety: safe
- Name: length
SwiftSafety: safe
- Name: empty
SwiftSafety: safe