forked from M-Labs/nac3
1
0
Fork 0

core/irrt: comment arrays_match()

This commit is contained in:
lyken 2024-07-26 12:36:40 +08:00
parent ab663c3ec8
commit ae88175c4c
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ const T& min(const T& a, const T& b) {
return a > b ? b : a;
}
/**
* @brief Compare contents of two arrays with the same length.
*/
template <typename T>
bool arrays_match(int len, T* as, T* bs) {
for (int i = 0; i < len; i++) {