Explorar o código

view: refine single type view ::find function

Michele Caini %!s(int64=3) %!d(string=hai) anos
pai
achega
6f32225736
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/entt/entity/view.hpp

+ 1 - 1
src/entt/entity/view.hpp

@@ -762,7 +762,7 @@ public:
      * iterator otherwise.
      * iterator otherwise.
      */
      */
     [[nodiscard]] iterator find(const entity_type entt) const noexcept {
     [[nodiscard]] iterator find(const entity_type entt) const noexcept {
-        return contains(entt) ? handle().find(entt) : end();
+        return handle().find(entt);
     }
     }
 
 
     /**
     /**