mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
AK: Add implicit conversion from nullptr to Span.
This commit is contained in:
parent
2b57891e07
commit
c42450786c
Notes:
sideshowbarker
2024-07-19 04:32:56 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/c42450786c0 Pull-request: https://github.com/SerenityOS/serenity/pull/2903
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue