Function data

Synopsis

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

const entity_type * data() const noexcept

Description

Direct access to the list of entities.

The returned pointer is such that range [data(), data() + size()) is always a valid range, even if the container is empty.

Return
A pointer to the array of entities.

Source

Lines 686-688 in src/entt/entity/group.hpp.

[[nodiscard]] const entity_type * data() const ENTT_NOEXCEPT {
    return std::get<0>(pools)->data();
}





Add Discussion

Log in to comment