Gromacs
2025-dev-20240913-b871546
|
Functions | |
void | throwErrorIfIndexOutOfBounds (ArrayRef< const int > indices, const int numAtoms, 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 | numAtoms, | ||
const std::string & | indexUsagePurpose | ||
) |
Throw an error if any element in index exceeds a given number.
[in] | indices | to be acessed |
[in] | numAtoms | to be accessed |
[in] | indexUsagePurpose | to be more explicit in the error message |
RangeError | if any element in indices is larger than or equal numAtoms |