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.

Returns
The identifier that occupies the given position.

Source

Lines 798-800 in src/entt/entity/group.hpp.

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





Add Discussion

Log in to comment