[Lldb-commits] [PATCH] D139083: [lldb][Module][NFC] Add ModuleList::AnyOf
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 1 12:21:28 PST 2022
aprantl added a comment.
This is definitely useful — I just have one question: Isn't ForEach a special case of AnyOf? Could we implement on in terms of the other?
================
Comment at: lldb/include/lldb/Core/ModuleList.h:480
+ /// This function is thread-safe.
+ bool AnyOf(std::function<bool(const lldb::ModuleSP &module_sp)> const
+ &callback) const;
----------------
Why not `std::function<bool(const lldb::Module &)>` ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139083/new/
https://reviews.llvm.org/D139083
More information about the lldb-commits
mailing list