GetReference()
Contents
[
Hide
]MemoryMarshal::GetReference(const Span<T>&) method
Gets a reference to the first element of the specified span.
template<typename T> static T & System::Runtime::InteropServices::MemoryMarshal::GetReference(const Span<T> &span)
Template parameters
| Parameter | Description |
|---|---|
| T | The type of elements in the span. |
Arguments
| Parameter | Type | Description |
|---|---|---|
| span | const Span<T>& | The span to access. |
Return Value
A reference to the first element of the span.
MemoryMarshal::GetReference(const ReadOnlySpan<T>&) method
Gets a reference to the first element of the specified read-only span.
template<typename T> static T & System::Runtime::InteropServices::MemoryMarshal::GetReference(const ReadOnlySpan<T> &span)
Template parameters
| Parameter | Description |
|---|---|
| T | The type of elements in the read-only span. |
Arguments
| Parameter | Type | Description |
|---|---|---|
| span | const ReadOnlySpan<T>& | The read-only span to access. |
Return Value
A reference to the first element of the read-only span.
See Also
- Class Span
- Class MemoryMarshal
- Class ReadOnlySpan
- Namespace System::Runtime::InteropServices
- Library Aspose.Slides