## MemoryMarshal::GetReference(const ReadOnlySpan\<T\>\&) method


Gets a reference to the first element of the specified read-only span.

```cpp
template<typename T> static T & System::Runtime::InteropServices::MemoryMarshal::GetReference(const ReadOnlySpan<T> &span)
```


| Parameter | Description |
| --- | --- |
| T | The type of elements in the read-only span. |

| Parameter | Type | Description |
| --- | --- | --- |
| span | const ReadOnlySpan\<T\>\& | The read-only span to access. |

### ReturnValue

A reference to the first element of the read-only span.

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [MemoryMarshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.TeX for C++](../../../)
## MemoryMarshal::GetReference(const Span\<T\>\&) method


Gets a reference to the first element of the specified span.

```cpp
template<typename T> static T & System::Runtime::InteropServices::MemoryMarshal::GetReference(const Span<T> &span)
```


| Parameter | Description |
| --- | --- |
| T | The type of elements in the span. |

| Parameter | Type | Description |
| --- | --- | --- |
| span | const Span\<T\>\& | The span to access. |

### ReturnValue

A reference to the first element of the span.

## See Also

* Class [Span](../../../system/span/)
* Class [MemoryMarshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.TeX for C++](../../../)
