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

src - The term to move from.

Returns
The destination term.

Source

Line 3005 in include/flecs.h.