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
Reference to the first element.

Source

Lines 80-83 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;
}