Struct basic_component_traits

Synopsis

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

struct basic_component_traits

Description

Commonly used default traits for all types.

Mentioned in

Inheritance

Decsendents: component_traits

Source

Lines 10-17 in src/entt/entity/component.hpp.

struct basic_component_traits {
    /*! @brief Pointer stability, default is `false`. */
    static constexpr auto in_place_delete = false;
    /*! @brief Empty type optimization, default is `ENTT_IGNORE_IF_EMPTY`. */
    static constexpr auto ignore_if_empty = ENTT_IGNORE_IF_EMPTY;
    /*! @brief Page size, default is `ENTT_PACKED_PAGE`. */
    static constexpr auto page_size = ENTT_PACKED_PAGE;
};





Add Discussion

Log in to comment