TArrayView::Slice

Returns a sliced view The is similar to [Mid()](API\Runtime\Core\Containers\TArrayView\Mid), but with a narrow contract, i.e. slicing outside of the range of the view is illegal.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/ArrayView.h

Include

#include "Containers/ArrayView.h"

Syntax

TArrayView Slice
(
    SizeType Index,
    SizeType InNum
) const

Remarks

Returns a sliced view The is similar to Mid(), but with a narrow contract, i.e. slicing outside of the range of the view is illegal.

Returns

Sliced view

Parameters

Parameter

Description

Index

starting index of the new view

InNum

number of elements in the new view

See Also

Mid