From c7a9bbf853dfcb63d8bbc298cabef1a388e30627 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 17 Apr 2024 09:45:09 +0200 Subject: [PATCH] table: basic iface (placeholder) --- src/entt/entity/table.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/entt/entity/table.hpp b/src/entt/entity/table.hpp index 803c6c0aa..d1f0d23bc 100644 --- a/src/entt/entity/table.hpp +++ b/src/entt/entity/table.hpp @@ -1,12 +1,29 @@ #ifndef ENTT_ENTITY_TABLE_HPP #define ENTT_ENTITY_TABLE_HPP +#include #include +#include #include +#include #include "fwd.hpp" namespace entt { +/*! @cond TURN_OFF_DOXYGEN */ +namespace internal { + +struct basic_common_table { + using size_type = std::size_t; + + virtual void reserve(const size_type) = 0; + [[nodiscard]] virtual size_type capacity() const noexcept = 0; + virtual void shrink_to_fit() = 0; +}; + +} // namespace internal +/*! @endcond */ + /** * @brief Basic table implementation. *