mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
AK: Add implicit conversion from nullptr to Span.
This commit is contained in:
parent
2b57891e07
commit
c42450786c
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue