Function ecs_iter_fini

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_iter_fini(ecs_iter_t *it)

Description

Cleanup iterator resources. This operation cleans up any resources associated with the iterator. Iterators may contain allocated resources when the number of matched terms exceeds ECS_TERM_CACHE_SIZE and/or when the source for the iterator requires to keep state while iterating.

This operation should only be used when an iterator is not iterated until completion (next has not yet returned false). When an iterator is iterated until completion, resources are automatically freed.

Parameters

it - The iterator.

Source

Line 3697 in include/flecs.h.