Function end

Synopsis

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

iterator end() const noexcept

Description

Returns an iterator that is past the last entity of the group.

The returned iterator points to the entity following the last entity of the group. Attempting to dereference the returned iterator results in undefined behavior.

Return
An iterator to the entity following the last entity of the group.

Source

Lines 712-714 in src/entt/entity/group.hpp.

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





Add Discussion

Log in to comment