at
Description
Accesses an element at a specified location.
Definition
1 2 | T &at(std::size_t i) const T &at(std::size_t i) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
i |
Input |
The ith element needs to be returned. |
Returns
Type |
Input/Output |
Description |
|---|---|---|
T& |
Output |
Returned element. |
Restrictions
During a function call, if the number of elements in the SVector is 0 or the input i is greater than or equal to the number of elements in the SVector, an out-of-bounds exception will be thrown.
Parent topic: SVector