Function orphaned

Synopsis

#include <include/flecs/addons/cpp/mixins/query/impl.hpp>

bool orphaned()

Description

Returns whether query is orphaned. When the parent query of a subquery is deleted, it is left in an orphaned state. The only valid operation on an orphaned query is deleting it. Only subqueries can be orphaned.

Returns
true if query is orphaned, otherwise false.

Source

Lines 58-60 in include/flecs/addons/cpp/mixins/query/impl.hpp.

bool orphaned() {
    return ecs_query_orphaned(m_query);
}