![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Check if the specified index is valid in std vector This check is 1-indexed by default.
This behavior can be changed by setting stan::error_index::value.
| T | Scalar type |
| function | Function name (for error messages) |
| name | Variable name (for error messages) |
| y | std::vector to test |
| i | Index |
| <code>std::out_of_range</code> | if the index is out of range. |
Definition at line 26 of file check_std_vector_index.hpp.