view: [[nodiscard]] as needed

This commit is contained in:
skypjack
2024-07-17 14:56:44 +02:00
parent 94250af280
commit 0475a2404b

View File

@@ -249,7 +249,7 @@ protected:
}
template<std::size_t Index>
const Type *storage() const noexcept {
[[nodiscard]] const Type *storage() const noexcept {
if constexpr(Index < Get) {
return pools[Index];
} else {
@@ -267,7 +267,7 @@ protected:
}
}
bool none_of(const typename Type::entity_type entt) const noexcept {
[[nodiscard]] bool none_of(const typename Type::entity_type entt) const noexcept {
return internal::none_of(filter.begin(), filter.end(), entt);
}