diff --git a/Source/Engine/Core/Collections/Array.h b/Source/Engine/Core/Collections/Array.h
index 9c50c5ccf..d67aecbc1 100644
--- a/Source/Engine/Core/Collections/Array.h
+++ b/Source/Engine/Core/Collections/Array.h
@@ -250,6 +250,16 @@ public:
return _count == 0;
}
+ ///
+ /// Determines if given index is valid.
+ ///
+ /// The index.
+ /// true if is valid a index; otherwise, false.
+ bool IsValidIndex(int32 index) const
+ {
+ return index < _count && index >= 0;
+ }
+
///
/// Gets the pointer to the first item in the collection (linear allocation).
///
@@ -737,18 +747,7 @@ public:
::Swap(other, *this);
}
}
-
- ///
- /// Determines if is valid index.
- ///
- /// The index.
- ///
- /// true if is valid a index; otherwise, false.
- ///
- bool IsValidIndex(int index) const
- {
- return index < _count && index >= 0;
- }
+
///
/// Reverses the order of the added items in the collection.
///