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

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to