From 00729e19b4da4801e670d00c49e92d25ed1c643e Mon Sep 17 00:00:00 2001 From: skypjack Date: Sat, 17 Jan 2026 00:59:50 +0100 Subject: [PATCH] view: cleanup --- src/entt/entity/view.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/entt/entity/view.hpp b/src/entt/entity/view.hpp index fb7b9df0c..5e18c0c09 100644 --- a/src/entt/entity/view.hpp +++ b/src/entt/entity/view.hpp @@ -29,14 +29,14 @@ const Type *view_placeholder() { return &placeholder; } -template -[[nodiscard]] bool all_of(It first, const It last, const Entity entt) noexcept { +template +[[nodiscard]] bool all_of(It first, const It last, const entity_like auto entt) noexcept { for(; (first != last) && (*first)->contains(entt); ++first) {} return first == last; } -template -[[nodiscard]] bool none_of(It first, const It last, const Entity entt) noexcept { +template +[[nodiscard]] bool none_of(It first, const It last, const entity_like auto entt) noexcept { for(; (first != last) && !(*first)->contains(entt); ++first) {} return first == last; }