|
@@ -573,10 +573,16 @@ public:
|
|
|
* @param entt An entity identifier.
|
|
* @param entt An entity identifier.
|
|
|
* @return True if `entity` is managed by the loader, false otherwise.
|
|
* @return True if `entity` is managed by the loader, false otherwise.
|
|
|
*/
|
|
*/
|
|
|
- bool has(entity_type entt) const ENTT_NOEXCEPT {
|
|
|
|
|
|
|
+ bool contains(entity_type entt) const ENTT_NOEXCEPT {
|
|
|
return (remloc.find(entt) != remloc.cend());
|
|
return (remloc.find(entt) != remloc.cend());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /*! @copydoc contains */
|
|
|
|
|
+ [[deprecated("use ::contains instead")]]
|
|
|
|
|
+ bool has(entity_type entt) const ENTT_NOEXCEPT {
|
|
|
|
|
+ return contains(entt);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @brief Returns the identifier to which an entity refers.
|
|
* @brief Returns the identifier to which an entity refers.
|
|
|
* @param entt An entity identifier.
|
|
* @param entt An entity identifier.
|