Function operator[]

Synopsis

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

entity_type operator[](const size_type pos) const

Description

Returns the identifier that occupies the given position.

Parameters

pos - Position of the element to return.

Return
The identifier that occupies the given position.

Source

Lines 779-781 in src/entt/entity/group.hpp.

[[nodiscard]] entity_type operator[](const size_type pos) const {
    return begin()[pos];
}





Add Discussion

Log in to comment