view: drop duplicated function

This commit is contained in:
Michele Caini
2023-12-12 15:54:48 +01:00
parent a74b1b8220
commit f3120f7e7d

View File

@@ -719,15 +719,6 @@ struct basic_storage_view {
return leading ? leading->find(entt) : iterator{};
}
/**
* @brief Returns the identifier that occupies the given position.
* @param pos Position of the element to return.
* @return The identifier that occupies the given position.
*/
[[nodiscard]] entity_type operator[](const size_type pos) const {
return begin()[pos];
}
/**
* @brief Checks if a view is fully initialized.
* @return True if the view is fully initialized, false otherwise.
@@ -855,7 +846,7 @@ public:
* @return The identifier that occupies the given position.
*/
[[nodiscard]] entity_type operator[](const size_type pos) const {
return this->base_type::operator[](pos);
return this->base_type::begin()[pos];
}
/**