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 1dac20c commit e0299bdCopy full SHA for e0299bd
platform/cxxsupport/mstd_span
@@ -17,6 +17,19 @@
17
#ifndef MSTD_SPAN_
18
#define MSTD_SPAN_
19
20
+#if __cplusplus >= 201703L && __has_include(<span>)
21
+#include <version>
22
+#endif
23
+
24
+#if __cpp_lib_span >= 202002L
25
+#include <span>
26
27
+namespace mstd {
28
+ using std::span;
29
+}
30
31
+#else //__cpp_lib_span >= 202002L
32
33
#include <array>
34
#include <mstd_iterator>
35
#include <mstd_type_traits>
@@ -364,4 +377,5 @@ constexpr span<const typename R::value_type> make_span(const R &cont)
364
377
365
378
} // namespace mstd
366
379
380
+#endif //__cpp_lib_span >= 202002L
367
381
#endif // MSTD_SPAN_
0 commit comments