Function ecs_iter_count

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_iter_count(ecs_iter_t *it)

Description

Count number of matched entities in query. This operation returns the number of matched entities. If a query contains no matched entities but still yields results (e.g. it has no terms with This subjects) the operation will return 0.

To determine the number of matched entities, the operation iterates the iterator until it yields no more results.

Parameters

it - The iterator.

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

Source

Line 3299 in include/flecs.h.