Function find

Synopsis

#include <src/entt/entity/group.hpp>

iterator find(const entity_type entt) const

Description

Finds an entity.

Parameters

entt - A valid entity identifier.

Return
An iterator to the given entity if it's found, past the end iterator otherwise.

Source

Lines 769-772 in src/entt/entity/group.hpp.

[[nodiscard]] iterator find(const entity_type entt) const {
    const auto it = std::get<0>(pools)->find(entt);
    return it != end() && it >= begin() && *it == entt ? it : end();
}





Add Discussion

Log in to comment