Struct stable_storage_policy

Synopsis

#include <src/entt/entity/view.hpp>

struct stable_storage_policy

Description

Stable storage policy, aimed at pointer stability.

Source

Lines 127-140 in src/entt/entity/view.hpp.

struct stable_storage_policy {
    /**
    * @cond TURN_OFF_DOXYGEN
    * Internal details not to be documented.
    */
    template<typename Entity>
    [[nodiscard]] static constexpr bool accept(const Entity entity) ENTT_NOEXCEPT {
        return entity != tombstone;
    }
    /**
    * Internal details not to be documented.
    * @endcond
    */
};





Add Discussion

Log in to comment