table: basic iface (placeholder)

This commit is contained in:
Michele Caini
2024-04-17 09:45:09 +02:00
parent 206110caaf
commit c7a9bbf853

View File

@@ -1,12 +1,29 @@
#ifndef ENTT_ENTITY_TABLE_HPP
#define ENTT_ENTITY_TABLE_HPP
#include <cstddef>
#include <memory>
#include <tuple>
#include <utility>
#include <vector>
#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.
*