Function remove

Synopsis

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

template <typename T>
void remove() const

Description

Remove singleton component.

Source

Lines 114-118 in include/flecs/addons/cpp/impl/world.hpp. Line 569 in include/flecs/addons/cpp/world.hpp.

template <typename T>
void world::remove() const {
    flecs::entity e(m_world, _::cpp_type<T>::id(m_world));
    e.remove<T>();
}