Update Array.h added IsValidIndex
This commit is contained in:
@@ -738,6 +738,17 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determines if is valid index.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="index">The index.</param>
|
||||||
|
/// <returns>
|
||||||
|
/// <c>true</c> if is valid a index; otherwise, <c>false</c>.
|
||||||
|
/// </returns>
|
||||||
|
bool IsValidIndex(int index) const
|
||||||
|
{
|
||||||
|
return index < _count && index >= 0;
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reverses the order of the added items in the collection.
|
/// Reverses the order of the added items in the collection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user