Function rend

Synopsis

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

reverse_iterator rend() const noexcept

Description

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

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

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

Source

Lines 739-741 in src/entt/entity/group.hpp.

[[nodiscard]] reverse_iterator rend() const ENTT_NOEXCEPT {
    return std::get<0>(pools)->basic_sparse_set<entity_type>::rbegin() + *length;
}





Add Discussion

Log in to comment