Function emplace

Synopsis

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

template <typename T, typename ... Args, if_t< std::is_constructible< actual_type_t< T >, flecs::entity, Args... >::value >>
void emplace(world_t *world, id_t entity, Args &&... args)

Description

No description yet.

Source

Lines 6-11 in include/flecs/addons/cpp/impl/world.hpp. Line 78 in include/flecs/addons/cpp/world.hpp.

template <typename T, typename ... Args, if_t<
    std::is_constructible<actual_type_t<T>, flecs::entity, Args...>::value >>
inline void emplace(world_t *world, id_t entity, Args&&... args) {
    flecs::entity self(world, entity);
    emplace<T>(world, entity, self, std::forward<Args>(args)...);
}