asynts
78849bbb48
AK: Add copy_to() and move_to() methods to AK::Span.
2020-08-15 21:21:18 +02:00
asynts
d4fe63d2ce
AK: Remove incorrect static assert in Span.h.
...
This assertion was added to prevent accitentally using stuff like
Span<int*> instead of Span<int>. But there can be spans of pointers.
2020-08-15 21:21:18 +02:00
AnotherTest
caedd05bd8
AK: Span<T>::operator=(const T&) => Span<T>::operator=(const Span<T>&)
2020-08-11 21:37:10 +02:00
asynts
5fa0fdb219
AK: Rename Span::subspan() to Span::slice().
2020-07-27 19:58:09 +02:00
asynts
8d2dba022e
AK: Add offset() method to Span.
2020-07-27 19:58:09 +02:00
asynts
c42450786c
AK: Add implicit conversion from nullptr to Span.
2020-07-27 19:58:09 +02:00
asynts
2b57891e07
AK: Add constructors to Bytes and ReadonlyBytes that take void pointers.
2020-07-27 19:58:09 +02:00
asynts
7036a9b6f7
AK: Define conversion from Span<T> to Span<const T> correctly.
...
I accidently wrote `Span<RemoveConst<T>>` when I meant
`Span<RemoveConst<T>::Type>`.
Changing that wouldn't be enough though, this constructor can only be
defined if T is not const, otherwise it would redefine the copy
constructor. This can be avoided by overloading the cast operator.
2020-07-27 19:58:09 +02:00
asynts
ac9c2bc492
AK: Implement Span which represents a contiguous sequence of objects.
...
This makes it possible to pass one object rather than pointer and length
individually.
2020-07-26 16:49:06 +02:00