Fix codestyle #2179

This commit is contained in:
Wojtek Figat
2024-02-19 17:36:37 +01:00
parent e8e52da51c
commit 2fd47f91e2

View File

@@ -250,6 +250,16 @@ public:
return _count == 0;
}
/// <summary>
/// Determines if given index is valid.
/// </summary>
/// <param name="index">The index.</param>
/// <returns><c>true</c> if is valid a index; otherwise, <c>false</c>.</returns>
bool IsValidIndex(int32 index) const
{
return index < _count && index >= 0;
}
/// <summary>
/// Gets the pointer to the first item in the collection (linear allocation).
/// </summary>
@@ -737,18 +747,7 @@ public:
::Swap(other, *this);
}
}
/// <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>
/// Reverses the order of the added items in the collection.
/// </summary>