Language:
Discover
By Skill Level
By Category

TArray::IsValidIndex

Choose your OS:

Syntax

bool IsValidIndex
(
    int32 Index
)

Remarks

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

True if index is valid. False otherwise.

Returns

True if index is valid. False otherwise.

Parameters

Parameter

Description

Index

Index to test.

References

Module

Core

Header

Runtime/Core/Public/Containers/Array.h