Cleanup is_contiguous
Some checks failed
doc / build (push) Has been cancelled
linux / clang++-11 c++17 Debug Fuzz (push) Has been cancelled
linux / clang++-11 c++17 Debug (push) Has been cancelled
linux / clang++-11 c++11 Debug (push) Has been cancelled
linux / clang++-14 c++20 Debug Sanitize (push) Has been cancelled
linux / clang++-14 c++20 Debug (push) Has been cancelled
linux / clang++-20 c++20 Debug Ninja (push) Has been cancelled
linux / clang++-3.6 c++11 Debug (push) Has been cancelled
linux / g++-11 c++11 Debug (push) Has been cancelled
linux / g++-11 c++17 Debug (push) Has been cancelled
linux / g++-11 c++14 Debug (push) Has been cancelled
linux / g++-11 c++20 Debug (push) Has been cancelled
linux / g++-4.9 c++11 Debug (push) Has been cancelled
linux / clang++-11 c++11 Release (push) Has been cancelled
linux / clang++-3.6 c++11 Release (push) Has been cancelled
linux / g++-11 c++11 Release (push) Has been cancelled
linux / g++-13 c++23 Release Shared (push) Has been cancelled
linux / g++-14 c++23 Release Ninja (push) Has been cancelled
linux / g++-4.9 c++11 Release (push) Has been cancelled
macos / c++11 Debug (push) Has been cancelled
macos / c++17 Debug (push) Has been cancelled
macos / c++20 Debug (push) Has been cancelled
macos / c++23 Debug (push) Has been cancelled
macos / c++11 Release (push) Has been cancelled
macos / c++17 Release (push) Has been cancelled
macos / c++20 Release (push) Has been cancelled
macos / c++23 Release (push) Has been cancelled
macos / c++23 Release Shared (push) Has been cancelled
windows / Win32 v142 c++17 Debug (push) Has been cancelled
windows / Win32 v142 c++17 Debug Shared (push) Has been cancelled
windows / x64 v142 c++17 Debug (push) Has been cancelled
windows / x64 v142 c++20 Debug (push) Has been cancelled
windows / x64 v142 c++17 Debug Shared (push) Has been cancelled
windows / x64 v143 c++20 Debug (push) Has been cancelled
windows / Win32 v142 c++17 Release (push) Has been cancelled
windows / Win32 v142 c++17 Release Shared (push) Has been cancelled
windows / x64 v142 c++17 Release (push) Has been cancelled
windows / x64 v142 c++20 Release (push) Has been cancelled
windows / x64 v142 c++17 Release Shared (push) Has been cancelled
windows / mingw (mingw64) (push) Has been cancelled
windows / mingw (ucrt64) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Some checks failed
doc / build (push) Has been cancelled
linux / clang++-11 c++17 Debug Fuzz (push) Has been cancelled
linux / clang++-11 c++17 Debug (push) Has been cancelled
linux / clang++-11 c++11 Debug (push) Has been cancelled
linux / clang++-14 c++20 Debug Sanitize (push) Has been cancelled
linux / clang++-14 c++20 Debug (push) Has been cancelled
linux / clang++-20 c++20 Debug Ninja (push) Has been cancelled
linux / clang++-3.6 c++11 Debug (push) Has been cancelled
linux / g++-11 c++11 Debug (push) Has been cancelled
linux / g++-11 c++17 Debug (push) Has been cancelled
linux / g++-11 c++14 Debug (push) Has been cancelled
linux / g++-11 c++20 Debug (push) Has been cancelled
linux / g++-4.9 c++11 Debug (push) Has been cancelled
linux / clang++-11 c++11 Release (push) Has been cancelled
linux / clang++-3.6 c++11 Release (push) Has been cancelled
linux / g++-11 c++11 Release (push) Has been cancelled
linux / g++-13 c++23 Release Shared (push) Has been cancelled
linux / g++-14 c++23 Release Ninja (push) Has been cancelled
linux / g++-4.9 c++11 Release (push) Has been cancelled
macos / c++11 Debug (push) Has been cancelled
macos / c++17 Debug (push) Has been cancelled
macos / c++20 Debug (push) Has been cancelled
macos / c++23 Debug (push) Has been cancelled
macos / c++11 Release (push) Has been cancelled
macos / c++17 Release (push) Has been cancelled
macos / c++20 Release (push) Has been cancelled
macos / c++23 Release (push) Has been cancelled
macos / c++23 Release Shared (push) Has been cancelled
windows / Win32 v142 c++17 Debug (push) Has been cancelled
windows / Win32 v142 c++17 Debug Shared (push) Has been cancelled
windows / x64 v142 c++17 Debug (push) Has been cancelled
windows / x64 v142 c++20 Debug (push) Has been cancelled
windows / x64 v142 c++17 Debug Shared (push) Has been cancelled
windows / x64 v143 c++20 Debug (push) Has been cancelled
windows / Win32 v142 c++17 Release (push) Has been cancelled
windows / Win32 v142 c++17 Release Shared (push) Has been cancelled
windows / x64 v142 c++17 Release (push) Has been cancelled
windows / x64 v142 c++20 Release (push) Has been cancelled
windows / x64 v142 c++17 Release Shared (push) Has been cancelled
windows / mingw (mingw64) (push) Has been cancelled
windows / mingw (ucrt64) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
This commit is contained in:
@@ -489,6 +489,14 @@ inline FMT_CONSTEXPR auto get_container(OutputIt it) ->
|
|||||||
};
|
};
|
||||||
return *accessor(it).container;
|
return *accessor(it).container;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T, typename Enable = void>
|
||||||
|
struct is_contiguous : std::false_type {};
|
||||||
|
template <typename T>
|
||||||
|
struct is_contiguous<T, void_t<decltype(std::declval<T&>().data()),
|
||||||
|
decltype(std::declval<T&>().size()),
|
||||||
|
decltype(std::declval<T&>()[size_t()])>>
|
||||||
|
: std::true_type {};
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
// Parsing-related public API and forward declarations.
|
// Parsing-related public API and forward declarations.
|
||||||
@@ -592,22 +600,6 @@ using string_view = basic_string_view<char>;
|
|||||||
template <typename T> class basic_appender;
|
template <typename T> class basic_appender;
|
||||||
using appender = basic_appender<char>;
|
using appender = basic_appender<char>;
|
||||||
|
|
||||||
// Checks whether T is a container with contiguous storage.
|
|
||||||
namespace detail {
|
|
||||||
|
|
||||||
template <typename T, typename Enable = void>
|
|
||||||
struct is_contiguous_ : std::false_type {};
|
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
struct is_contiguous_<T, void_t<decltype(std::declval<T&>().data()),
|
|
||||||
decltype(std::declval<T&>().size()),
|
|
||||||
decltype(std::declval<T&>()[size_t{}])>>
|
|
||||||
: std::true_type {};
|
|
||||||
|
|
||||||
} // namespace detail
|
|
||||||
|
|
||||||
template <typename T> struct is_contiguous : detail::is_contiguous_<T> {};
|
|
||||||
|
|
||||||
class context;
|
class context;
|
||||||
template <typename OutputIt, typename Char> class generic_context;
|
template <typename OutputIt, typename Char> class generic_context;
|
||||||
template <typename Char> class parse_context;
|
template <typename Char> class parse_context;
|
||||||
@@ -626,6 +618,8 @@ using buffered_context =
|
|||||||
conditional_t<std::is_same<Char, char>::value, context,
|
conditional_t<std::is_same<Char, char>::value, context,
|
||||||
generic_context<basic_appender<Char>, Char>>;
|
generic_context<basic_appender<Char>, Char>>;
|
||||||
|
|
||||||
|
template <typename T> struct is_contiguous : detail::is_contiguous<T> {};
|
||||||
|
|
||||||
template <typename Context> class basic_format_arg;
|
template <typename Context> class basic_format_arg;
|
||||||
template <typename Context> class basic_format_args;
|
template <typename Context> class basic_format_args;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user