We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e81879 commit 6ba58f5Copy full SHA for 6ba58f5
test/Interop/Cxx/stdlib/Inputs/std-span.h
@@ -6,6 +6,14 @@
6
#include <string>
7
#include <vector>
8
9
+#ifndef __counted_by // cstddef already imports ptrcheck.h on apple platforms
10
+#if defined(__has_feature) && __has_feature(bounds_safety_attributes)
11
+ #define __counted_by(x) __attribute__((__counted_by__(x)))
12
+#else
13
+ #define __counted_by(x)
14
+#endif
15
16
+
17
using ConstSpanOfInt = std::span<const int>;
18
using SpanOfInt = std::span<int>;
19
using ConstSpanOfString = std::span<const std::string>;
0 commit comments