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 13-18 in src/entt/entity/component.hpp.

struct basic_component_traits {
    /*! @brief Pointer stability, default is `std::false_type`. */
    using in_place_delete = std::false_type;
    /*! @brief Empty type optimization, default is `ENTT_IGNORE_IF_EMPTY`. */
    using ignore_if_empty = ENTT_IGNORE_IF_EMPTY;
};





Add Discussion

Log in to comment