mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-15 07:09:43 +03:00
f99d1d3bd7
Problem: - The implementation of `find` is coupled to the implementation of `Vector`. - `Vector::find` takes the predicate by value which might be expensive. Solution: - Decouple the implementation of `find` from `Vector` by using a generic `find` algorithm. - Change the name of `find` with a predicate to `find_if` so that a binding reference can be used and the predicate can be forwarded to avoid copies. - Change all the `find(pred)` call sites to use `find_if`. |
||
---|---|---|
.. | ||
BacktraceModel.cpp | ||
BacktraceModel.h | ||
BreakpointCallback.h | ||
Debugger.cpp | ||
Debugger.h | ||
DebugInfoWidget.cpp | ||
DebugInfoWidget.h | ||
DisassemblyModel.cpp | ||
DisassemblyModel.h | ||
DisassemblyWidget.cpp | ||
DisassemblyWidget.h | ||
RegistersModel.cpp | ||
RegistersModel.h | ||
VariablesModel.cpp | ||
VariablesModel.h |