mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
AK: Add implicit conversion from nullptr to Span.
This commit is contained in:
parent
2b57891e07
commit
c42450786c
|
@ -109,6 +109,11 @@ public:
|
||||||
|
|
||||||
using Detail::Span<T>::Span;
|
using Detail::Span<T>::Span;
|
||||||
|
|
||||||
|
ALWAYS_INLINE Span(std::nullptr_t)
|
||||||
|
: Span()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
ALWAYS_INLINE Span(const Span& other)
|
ALWAYS_INLINE Span(const Span& other)
|
||||||
: Span(other.m_values, other.m_size)
|
: Span(other.m_values, other.m_size)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue