diff options
Diffstat (limited to 'source/core/slang-array-view.h')
| -rw-r--r-- | source/core/slang-array-view.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/slang-array-view.h b/source/core/slang-array-view.h index 99609ef69..50270e0a0 100644 --- a/source/core/slang-array-view.h +++ b/source/core/slang-array-view.h @@ -197,6 +197,8 @@ namespace Slang return ThisType(m_buffer + index, m_count - index); } + T& getLast() { return m_buffer[m_count - 1]; } + ArrayView() : Super() {} ArrayView(T* buffer, Index size) :Super(buffer, size) {} }; |
