diff --git a/src/entt/entity/component.hpp b/src/entt/entity/component.hpp index 67aa54a86..0839a9178 100644 --- a/src/entt/entity/component.hpp +++ b/src/entt/entity/component.hpp @@ -28,6 +28,22 @@ struct component_traits: basic_component_traits { }; +/** + * @brief Helper variable template. + * @tparam Type Type of component. + */ +template +inline constexpr bool in_place_delete_v = component_traits::in_place_delete::value; + + +/** + * @brief Helper variable template. + * @tparam Type Type of component. + */ +template +inline constexpr bool ignore_if_empty_v = component_traits::ignore_if_empty::value; + + }