summaryrefslogtreecommitdiffstats
path: root/deps/include/entt/entity/component.hpp
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-06-28 01:59:49 +0500
committeruntodesu <kirill@untode.su>2025-06-28 01:59:49 +0500
commit61e5bcef2629e2d68b805a956a96fff264d4f74d (patch)
treebca3a94bac79d34e3c0db57c77604f5a823ecbda /deps/include/entt/entity/component.hpp
parent88c01588aa0830e219eaa62588839e4d1e2883ce (diff)
downloadvoxelius-61e5bcef2629e2d68b805a956a96fff264d4f74d.tar.bz2
voxelius-61e5bcef2629e2d68b805a956a96fff264d4f74d.zip
Restructure dependencies and update to C++20
- Nuked static_assert from almost everywhere in the project - Nuked binary dependency support. Might add one later though - Separated dependency headers into a separate include subdirectory - Grafted a thirdpartylegalnotices.txt generator from RITEG - Pushed development snapshot version to 2126 (26th week of 2025)
Diffstat (limited to 'deps/include/entt/entity/component.hpp')
-rw-r--r--deps/include/entt/entity/component.hpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/deps/include/entt/entity/component.hpp b/deps/include/entt/entity/component.hpp
deleted file mode 100644
index 7b17827..0000000
--- a/deps/include/entt/entity/component.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef ENTT_ENTITY_COMPONENT_HPP
-#define ENTT_ENTITY_COMPONENT_HPP
-
-#include <cstddef>
-#include <type_traits>
-#include "../config/config.h"
-#include "fwd.hpp"
-
-namespace entt {
-
-/*! @cond TURN_OFF_DOXYGEN */
-namespace internal {
-
-template<typename Type, typename = void>
-struct in_place_delete: std::bool_constant<!(std::is_move_constructible_v<Type> && std::is_move_assignable_v<Type>)> {};
-
-template<>
-struct in_place_delete<void>: std::false_type {};
-
-template<typename Type>
-struct in_place_delete<Type, std::enable_if_t<Type::in_place_delete>>
- : std::true_type {};
-
-template<typename Type, typename = void>
-struct page_size: std::integral_constant<std::size_t, !std::is_empty_v<ENTT_ETO_TYPE(Type)> * ENTT_PACKED_PAGE> {};
-
-template<>
-struct page_size<void>: std::integral_constant<std::size_t, 0u> {};
-
-template<typename Type>
-struct page_size<Type, std::void_t<decltype(Type::page_size)>>
- : std::integral_constant<std::size_t, Type::page_size> {};
-
-} // namespace internal
-/*! @endcond */
-
-/**
- * @brief Common way to access various properties of components.
- * @tparam Type Type of component.
- */
-template<typename Type, typename = void>
-struct component_traits {
- static_assert(std::is_same_v<std::decay_t<Type>, Type>, "Unsupported type");
-
- /*! @brief Component type. */
- using type = Type;
-
- /*! @brief Pointer stability, default is `false`. */
- static constexpr bool in_place_delete = internal::in_place_delete<Type>::value;
- /*! @brief Page size, default is `ENTT_PACKED_PAGE` for non-empty types. */
- static constexpr std::size_t page_size = internal::page_size<Type>::value;
-};
-
-} // namespace entt
-
-#endif