TArrayView::IsValidIndex

Tests if index is valid, i.e. than or equal to zero, and less than the number of elements in the array.

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

bool IsValidIndex
(
    SizeType Index
) const

Remarks

Tests if index is valid, i.e. than or equal to zero, and less than the number of elements in the array.

Returns

True if index is valid. False otherwise.

Parameters

Parameter

Description

Index

Index to test.