Skip to content

Geometries::Point::access_operator

Andrey Prokopenko edited this page Mar 28, 2026 · 2 revisions

ArborX / Geometries / ArborX::Point

ArborX::Point<DIM, Coordinate>::operator[]

KOKKOS_FUNCTION
constexpr auto &operator[](unsigned int i); // (1)

KOKKOS_FUNCTION
constexpr auto const &operator[](unsigned int i) const; // (2)
  1. Returns a reference to the value in the i-th dimension. This can be used to modify the coordinates of the point.
  2. Returns a constant reference to the value in the i-th dimension.

Clone this wiki locally