Function destruct

Synopsis

#include <include/flecs/addons/cpp/entity.hpp>

void destruct() const

Description

Delete an entity. Entities have to be deleted explicitly, and are not deleted when the entity object goes out of scope.

Source

Lines 223-225 in include/flecs/addons/cpp/entity.hpp.

void destruct() const {
    ecs_delete(m_world, m_id);
}