From 7b6e0ca99f8521e034452f0d0243a7f3e33843a9 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 28 May 2024 17:23:20 +0200 Subject: Docs and Sycl fixes --- modules/core/c++/id_map.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/core/c++') 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 find(const id& val){ if(val.get_value() >= data_.size()){ return make_error("ID is too large"); -- cgit v1.2.3