Represents a contiguous region of arbitrary memory similar to C++20's std::span.
More...
#include <span.h>
Inherits System::Details::SpanCore< T, Span< T >, Span< T > >.
|
void | Clear () const |
| Clears the contents of the span by setting all elements to default value. More...
|
|
void | Fill (const T &value) const |
| Fills the span with the specified value. More...
|
|
template<typename T>
class System::Span< T >
Represents a contiguous region of arbitrary memory similar to C++20's std::span.
- Template Parameters
-
T | The type of elements in the span. This class provides a type-safe way to work with contiguous sequences of objects. It can be used to wrap arrays, stack arrays, or raw pointers while maintaining bounds checking. The Span doesn't own the memory it points to - it's just a view into existing memory. |
◆ Clear()
Clears the contents of the span by setting all elements to default value.
◆ Fill()
Fills the span with the specified value.
- Parameters
-
value | The value to assign to each element of the span. |
◆ to_Span()
Converts an array to a Span.
- Parameters
-
array | The array to convert. |
- Returns
- A span representing the array.