LiteFX::Math::Vector4i::operator[]¶
Subscript operators
Synopses¶
Declared in <litefx/vector.hpp>
Returns a value from the vector, indexed by the parameter i.
[[dllexport, dllimport]] constexpr int operator[](unsigned int i) const noexcept;
Returns a reference to a value from the vector, indexed by the parameter i.
[[dllexport, dllimport]] constexpr int& operator[](unsigned int i) noexcept;
Return Value¶
- The value of the element at the provided index.
- A reference to a value of the element at the provided index.
Parameters¶
| Name | Description |
|---|---|
| i | The index of the element to return. |