Function get_mut

Synopsis

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

template <typename T>
T * get_mut() const

Description

Get mut singleton component.

Source

Lines 84-88 in include/flecs/addons/cpp/impl/world.hpp. Line 539 in include/flecs/addons/cpp/world.hpp.

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