summaryrefslogtreecommitdiff
path: root/core/vmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/vmap.h')
-rw-r--r--core/vmap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/vmap.h b/core/vmap.h
index c6c3d50bc7..516299280b 100644
--- a/core/vmap.h
+++ b/core/vmap.h
@@ -142,6 +142,12 @@ public:
}
+ int find_nearest(const T& p_val) const {
+
+ bool exact;
+ return _find(p_val,exact);
+
+ }
_FORCE_INLINE_ int size() const { return _data.size(); }
_FORCE_INLINE_ bool empty() const { return _data.empty(); }