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 879463e commit 713d88fCopy full SHA for 713d88f
1 file changed
include/fmt/base.h
@@ -20,6 +20,10 @@
20
# include <type_traits> // std::enable_if
21
#endif
22
23
+#if defined(__cpp_lib_ranges)
24
+# include <ranges>
25
+#endif
26
+
27
// The fmt library version in the form major * 10000 + minor * 100 + patch.
28
#define FMT_VERSION 120101
29
@@ -588,7 +592,12 @@ template <typename T> class basic_appender;
588
592
using appender = basic_appender<char>;
589
593
590
594
// Checks whether T is a container with contiguous storage.
595
596
+template <typename T>
597
+struct is_contiguous : std::bool_constant<std::ranges::contiguous_range<T>> {};
598
+#else
591
599
template <typename T> struct is_contiguous : std::false_type {};
600
601
602
class context;
603
template <typename OutputIt, typename Char> class generic_context;
0 commit comments