Struct storage_traits

Synopsis

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

template<typename Entity, typename Type, typename = void>
struct storage_traits

Description

Provides a common way to access certain properties of storage types.

Template Parameters

Entity - A valid entity type (see entt_traits for more details).

Type - Type of objects managed by the storage class.

Source

Lines 1016-1020 in src/entt/entity/storage.hpp.

template<typename Entity, typename Type, typename = void>
struct storage_traits {
    /*! @brief Resulting type after component-to-storage conversion. */
    using storage_type = sigh_storage_mixin<basic_storage<Entity, Type>>;
};





Add Discussion

Log in to comment