Function operator->

Synopsis

#include <include/flecs/addons/cpp/iter.hpp>

T * operator->() const

Description

Return first element of component array. This operator is typically used when the column is shared.

Returns
Pointer to the first element.

Source

Lines 90-93 in include/flecs/addons/cpp/iter.hpp.

T* operator->() const {
    ecs_assert(m_array != nullptr, ECS_COLUMN_INDEX_OUT_OF_RANGE, NULL);
    return m_array;
}