Struct storage_traits

Synopsis

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

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

Description

Applies component-to-storage conversion and defines the resulting type as the member typedef type.

Formally:

  • If the component type is a non-const one, the member typedef type is the declared storage type.
  • If the component type is a const one, the member typedef type is the declared storage type, except it has a const-qualifier added.
Template Parameters

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

Type - Type of objects assigned to the entities.

Source

Lines 802-806 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<storage_adapter_mixin<basic_storage<Entity, Type>>>;
};





Add Discussion

Log in to comment