Function free_obj

Synopsis

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

template <class Ty>
void free_obj(Ty *_ptr)

Description

No description yet.

Source

Lines 46-51 in include/flecs/addons/cpp/utils/utils.hpp.

template<class Ty> inline void free_obj(Ty* _ptr) { 
    if (_ptr) {
        destruct_obj(_ptr); 
        ecs_os_free(_ptr); 
    }
}