#include #include #include #include #include "../../../common/boxed_type.h" #include "../../../common/empty.h" #include "lib.h" template class entt::basic_registry; ENTT_API void update(entt::registry ®istry, int value) { registry.view().each([value](auto &elem) { elem.value += value; }); } ENTT_API void insert(entt::registry ®istry) { // forces the creation of the pool for the empty type static_cast(registry.storage()); const auto view = registry.view(); registry.insert(view.begin(), view.end()); }