Merge pull request #58176 from timothyqiu/find-nearest
This commit is contained in:
@ -142,6 +142,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
int find_nearest(const T &p_val) const {
|
int find_nearest(const T &p_val) const {
|
||||||
|
if (_cowdata.is_empty()) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
bool exact;
|
bool exact;
|
||||||
return _find(p_val, exact);
|
return _find(p_val, exact);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user