Gromacs
2021
|
Functions | |
void | throwErrorIfIndexOutOfBounds (ArrayRef< const int > indices, const int largestOkayIndex, const std::string &indexUsagePurpose) |
Throw an error if any element in index exceeds a given number. More... | |
void gmx::anonymous_namespace{gmx_covar.cpp}::throwErrorIfIndexOutOfBounds | ( | ArrayRef< const int > | indices, |
const int | largestOkayIndex, | ||
const std::string & | indexUsagePurpose | ||
) |
Throw an error if any element in index exceeds a given number.
[in] | indices | to be acessed |
[in] | largestOkayIndex | to be accessed |
[in] | indexUsagePurpose | to be more explicit in the error message |
RangeError | if largestOkayIndex is larger than any element in indices |