mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
AK: Add log stream operator overload for Span.
This commit is contained in:
parent
f9ba037674
commit
b011f87d34
1 changed files with 6 additions and 0 deletions
|
@ -177,6 +177,12 @@ const LogStream& operator<<(const LogStream&, double);
|
||||||
const LogStream& operator<<(const LogStream&, float);
|
const LogStream& operator<<(const LogStream&, float);
|
||||||
#endif
|
#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*);
|
const LogStream& operator<<(const LogStream&, const void*);
|
||||||
|
|
||||||
inline const LogStream& operator<<(const LogStream& stream, char value)
|
inline const LogStream& operator<<(const LogStream& stream, char value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue