We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be2fd35 commit 042c5feCopy full SHA for 042c5fe
1 file changed
main.cpp
@@ -539,6 +539,17 @@ struct Workspace
539
return nullptr;
540
}
541
542
+ // retrieve_any function implementation
543
+ std::optional<std::any> retrieve_any(const std::string_view name) const
544
+ {
545
+ std::lock_guard<std::mutex> lock(mtx);
546
+ if (auto it = memory_store.find(std::string(name)); it != std::ranges::end(memory_store))
547
548
+ return it->second;
549
+ }
550
+ return std::nullopt;
551
552
+
553
// remove function implementation
554
bool remove(const std::string_view name)
555
{
0 commit comments