Function ecs_iter_next

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_iter_next(ecs_iter_t *it)

Description

Progress any iterator. This operation is useful in combination with iterators for which it is not known what created them. Example use cases are functions that should accept any kind of iterator (such as serializers) or iterators created from poly objects.

This operation is slightly slower than using a type-specific iterator (e.g. ecs_filter_next, ecs_query_next) as it has to call a function pointer which introduces a level of indirection.

Parameters

it - The iterator.

Returns
True if iterator has more results, false if not.

Source

Line 3268 in include/flecs.h.