|
|
@@ -261,6 +261,14 @@ public:
|
|
|
return pools.empty() ? iterator{} : iterator{pools, filter, pools[0]->end()};
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @brief Checks whether a view is initialized or not.
|
|
|
+ * @return True if the view is initialized, false otherwise.
|
|
|
+ */
|
|
|
+ [[nodiscard]] explicit operator bool() const noexcept {
|
|
|
+ return !(pools.empty() && filter.empty());
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @brief Checks if a view contains an entity.
|
|
|
* @param entt A valid identifier.
|