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 aa283d2 commit b23f66eCopy full SHA for b23f66e
AK/URL.h
@@ -102,6 +102,14 @@ inline const LogStream& operator<<(const LogStream& stream, const URL& value)
102
return stream << value.to_string();
103
}
104
105
+template<>
106
+struct Formatter<URL> : Formatter<StringView> {
107
+ void format(TypeErasedFormatParams& params, FormatBuilder& builder, const URL& value)
108
+ {
109
+ Formatter<StringView>::format(params, builder, value.to_string());
110
+ }
111
+};
112
+
113
template<>
114
struct Traits<URL> : public GenericTraits<URL> {
115
static unsigned hash(const URL& url) { return url.to_string().hash(); }
0 commit comments