Function is_valid

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

bool is_valid(flecs::entity_t e) const

Description

Check if entity id is valid. Invalid entities cannot be used with API functions.

See
ecs_is_valid

Source

Lines 801-803 in include/flecs/addons/cpp/world.hpp.

bool is_valid(flecs::entity_t e) const {
    return ecs_is_valid(m_world, e);
}