Skip to content

LiteFX::Math::Vector::operator[]

Subscript operators

Synopses

Declared in <litefx/vector.hpp>

Returns a value from the vector, indexed by the parameter i.

constexpr T operator[](unsigned int i) const noexcept;

» more...

Returns a reference to a value from the vector, indexed by the parameter i.

constexpr T& operator[](unsigned int i) noexcept;

» more...

Return Value

  • The value of the element at the provided index.
  • A reference to a value of the element at the provided index.

Parameters

NameDescription
iThe index of the element to return.