view: drop useless constexpr branch
This commit is contained in:
@@ -797,18 +797,14 @@ public:
|
||||
for(const auto pack: each()) {
|
||||
std::apply(func, pack);
|
||||
}
|
||||
} else if constexpr(std::is_invocable_v<Func, constness_as_t<typename Get::value_type, Get> &>) {
|
||||
for(auto &&component: *std::get<0>(pools)) {
|
||||
func(component);
|
||||
}
|
||||
} else if constexpr(std::is_invocable_v<Func, entity_type>) {
|
||||
for(auto entity: *this) {
|
||||
func(entity);
|
||||
}
|
||||
} else {
|
||||
} else if constexpr(ignore_as_empty_v<typename Get::value_type>) {
|
||||
for(size_type pos{}, last = size(); pos < last; ++pos) {
|
||||
func();
|
||||
}
|
||||
} else {
|
||||
for(auto &&component: *std::get<0>(pools)) {
|
||||
func(component);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user