llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-lldb Author: Dave Lee (kastiglione) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/177211.diff 1 Files Affected: - (modified) lldb/include/lldb/Utility/UserID.h (-20) ``````````diff diff --git a/lldb/include/lldb/Utility/UserID.h b/lldb/include/lldb/Utility/UserID.h index 19e0052fc51cb..ca5e6a8785fdc 100644 --- a/lldb/include/lldb/Utility/UserID.h +++ b/lldb/include/lldb/Utility/UserID.h @@ -52,26 +52,6 @@ struct UserID { /// The new user ID. void SetID(lldb::user_id_t uid) { m_uid = uid; } - /// Unary predicate function object that can search for a matching user ID. - /// - /// Function object that can be used on any class that inherits from UserID: - /// \code - /// iterator pos; - /// pos = std::find_if (coll.begin(), coll.end(), UserID::IDMatches(blockID)); - /// \endcode - class IDMatches { - public: - /// Construct with the user ID to look for. - IDMatches(lldb::user_id_t uid) : m_uid(uid) {} - - /// Unary predicate function object callback. - bool operator()(const UserID &rhs) const { return m_uid == rhs.GetID(); } - - private: - // Member variables. - const lldb::user_id_t m_uid; ///< The user ID we are looking for - }; - protected: // Member variables. lldb::user_id_t m_uid; ///< The user ID that uniquely identifies an object. `````````` </details> https://github.com/llvm/llvm-project/pull/177211 _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
