IsOutOfBounds()

System::Collections::Generic::Details::IsOutOfBounds(int, const Container&) function

Checks if index is out of container bounds, excluding container size.

template<typename Container> bool System::Collections::Generic::Details::IsOutOfBounds(int idx, const Container &container)

Template parameters

ParameterDescription
ContainerContainer type.

Arguments

ParameterTypeDescription
idxintIndex.
containerconst Container&Container to check index against.

Return Value

True if index is out of container bounds, false otherwise.

System::Collections::Generic::Details::IsOutOfBounds(std::int64_t, const Container&) function

Checks if index is out of container bounds, excluding container size.

template<typename Container> bool System::Collections::Generic::Details::IsOutOfBounds(std::int64_t idx, const Container &container)

Template parameters

ParameterDescription
ContainerContainer type.

Arguments

ParameterTypeDescription
idxstd::int64_tIndex.
containerconst Container&Container to check index against.

Return Value

True if index is out of container bounds, false otherwise.

See Also