AK: Add implicit conversion from nullptr to Span.

This commit is contained in:
asynts 2020-07-27 14:16:04 +02:00 committed by Andreas Kling
parent 2b57891e07
commit c42450786c
Notes: sideshowbarker 2024-07-19 04:32:56 +09:00

View file

@ -109,6 +109,11 @@ public:
using Detail::Span<T>::Span;
ALWAYS_INLINE Span(std::nullptr_t)
: Span()
{
}
ALWAYS_INLINE Span(const Span& other)
: Span(other.m_values, other.m_size)
{