Skip to content

Commit

Permalink
update single include file to v3.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jun 23, 2023
1 parent da56665 commit 344e03a
Showing 1 changed file with 37 additions and 35 deletions.
72 changes: 37 additions & 35 deletions single_include/entt/entt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -125,7 +125,7 @@

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -167,7 +167,7 @@

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -292,7 +292,7 @@

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -5231,7 +5231,7 @@ struct radix_sort {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -10327,7 +10327,7 @@ struct y_combinator {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -10447,7 +10447,7 @@ struct y_combinator {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -19611,7 +19611,7 @@ template<typename... Args, typename... Other>

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -19728,7 +19728,7 @@ template<typename... Args, typename... Other>

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -25110,7 +25110,7 @@ struct y_combinator {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -25428,7 +25428,7 @@ struct iterable_adaptor final {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -25939,7 +25939,7 @@ class adjacency_matrix {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -26064,7 +26064,7 @@ class adjacency_matrix {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -33458,7 +33458,7 @@ class basic_organizer final {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -33583,7 +33583,7 @@ class basic_organizer final {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -38184,7 +38184,7 @@ class basic_registry {
* @return True if the identifier is valid, false otherwise.
*/
[[nodiscard]] bool valid(const entity_type entt) const {
return entities.contains(entt);
return entities.contains(entt) && (entities.index(entt) < entities.in_use());
}

/**
Expand Down Expand Up @@ -39549,7 +39549,9 @@ class basic_snapshot_loader {
basic_snapshot_loader(registry_type &source) noexcept
: reg{&source} {
// restoring a snapshot as a whole requires a clean registry
ENTT_ASSERT(reg->empty(), "Registry must be empty");
for([[maybe_unused]] auto elem: source.storage()) {
ENTT_ASSERT(elem.second.empty(), "Registry must be empty");
}
}

/*! @brief Default move constructor. */
Expand Down Expand Up @@ -43156,7 +43158,7 @@ basic_view(std::tuple<Get &...>, std::tuple<Exclude &...> = {}) -> basic_view<ge

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -43474,7 +43476,7 @@ struct iterable_adaptor final {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -44046,7 +44048,7 @@ void dot(std::ostream &out, const Graph &graph) {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -44171,7 +44173,7 @@ void dot(std::ostream &out, const Graph &graph) {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -50875,7 +50877,7 @@ class basic_flow {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -51190,7 +51192,7 @@ struct adl_meta_pointer_like {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -51315,7 +51317,7 @@ struct adl_meta_pointer_like {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -56015,7 +56017,7 @@ class dense_set {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -56313,7 +56315,7 @@ class meta_ctx: private internal::meta_context {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -60038,7 +60040,7 @@ struct std::tuple_element<Index, entt::value_list<Value...>>: entt::value_list_e

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -67988,7 +67990,7 @@ using invoke_result_t = typename std::invoke_result<Func, Args...>::type;

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -72816,7 +72818,7 @@ class basic_scheduler {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -72941,7 +72943,7 @@ class basic_scheduler {

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -76751,7 +76753,7 @@ struct uses_allocator<entt::internal::dense_map_node<Key, Value>, Allocator>

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -79390,7 +79392,7 @@ template<typename Lhs, typename Rhs>

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -79507,7 +79509,7 @@ template<typename Lhs, typename Rhs>

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -80959,7 +80961,7 @@ delegate(Ret (*)(const void *, Args...), const void * = nullptr) -> delegate<Ret

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down Expand Up @@ -81084,7 +81086,7 @@ delegate(Ret (*)(const void *, Args...), const void * = nullptr) -> delegate<Ret

#define ENTT_VERSION_MAJOR 3
#define ENTT_VERSION_MINOR 12
#define ENTT_VERSION_PATCH 1
#define ENTT_VERSION_PATCH 2

#define ENTT_VERSION \
ENTT_XSTR(ENTT_VERSION_MAJOR) \
Expand Down

0 comments on commit 344e03a

Please sign in to comment.