Function begin

Synopsis

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

iterator begin() const noexcept

Description

Returns an iterator to the first entity of the group.

The returned iterator points to the first entity of the group. If the group is empty, the returned iterator will be equal to end().

Return
An iterator to the first entity of the group.

Source

Lines 698-700 in src/entt/entity/group.hpp.

[[nodiscard]] iterator begin() const ENTT_NOEXCEPT {
    return std::get<0>(pools)->basic_sparse_set<entity_type>::end() - *length;
}





Add Discussion

Log in to comment