summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-05-28 17:23:20 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-05-28 17:23:20 +0200
commit7b6e0ca99f8521e034452f0d0243a7f3e33843a9 (patch)
tree22ee558b32738cb670baa3594bcaa9919eb68908 /modules/core
parent8b5c1e6a6cd5536d9414262c42452f8655658728 (diff)
Docs and Sycl fixes
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/c++/id_map.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/core/c++/id_map.hpp b/modules/core/c++/id_map.hpp
index e1c1b3f..1df2178 100644
--- a/modules/core/c++/id_map.hpp
+++ b/modules/core/c++/id_map.hpp
@@ -140,6 +140,11 @@ public:
return void_t{};
}
+ /**
+ * Tries to find a value based on an id.
+ * Returns an error on failure and returns
+ * a value pointer on success.
+ */
error_or<T*> find(const id<T>& val){
if(val.get_value() >= data_.size()){
return make_error<err::not_found>("ID is too large");