1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:57:35 +00:00

AK: Add log stream operator overload for Span.

This commit is contained in:
asynts 2020-09-03 17:57:08 +02:00 committed by Andreas Kling
parent f9ba037674
commit b011f87d34

View file

@ -177,6 +177,12 @@ const LogStream& operator<<(const LogStream&, double);
const LogStream& operator<<(const LogStream&, float);
#endif
template<typename T>
const LogStream& operator<<(const LogStream& stream, Span<T> span)
{
return stream << "{ " << span.data() << ", " << span.size() << " }";
}
const LogStream& operator<<(const LogStream&, const void*);
inline const LogStream& operator<<(const LogStream& stream, char value)