Просмотр исходного кода

view: refine single type view ::find function

Michele Caini 3 лет назад
Родитель
Сommit
6f32225736
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/view.hpp

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

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