Function ecs_term_move

Synopsis

#include <include/flecs.h>

FLECS_API ecs_term_t ecs_term_move(ecs_term_t *src)

Description

Move resources of a term to another term. Same as copy, but moves resources from src, if src->move is set to true. If src->move is not set to true, this operation will do a copy.

The conditional move reduces redundant allocations in scenarios where a list of terms is partially created with allocated resources.

Parameters

dst - The term to copy to.

src - The term to copy from.

Source

Line 2423 in include/flecs.h.