IsOutOfSize()

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

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

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

Template parameters

ParameterDescription
ContainerContainer type.

Arguments

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

Return Value

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

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

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

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

Template parameters

ParameterDescription
ContainerContainer type.

Arguments

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

Return Value

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

See Also