#include <include/flecs.h> FLECS_API ecs_iter_t ecs_term_iter(const ecs_world_t *world, ecs_term_t *term)
Iterator for a single (component) id. A term iterator returns all entities (tables) that match a single (component) id. The search for the matching set of entities (tables) is performed in constant time.
Currently only trivial terms are supported (see ecs_term_is_trivial). Only the id field of the term needs to be initialized.
world- The world.
term- The term.
- The iterator.