mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 18:25:09 +00:00
![]() 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`. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
DevicesModel.cpp | ||
DevicesModel.h | ||
GraphWidget.cpp | ||
GraphWidget.h | ||
InterruptsWidget.cpp | ||
InterruptsWidget.h | ||
main.cpp | ||
MemoryStatsWidget.cpp | ||
MemoryStatsWidget.h | ||
NetworkStatisticsWidget.cpp | ||
NetworkStatisticsWidget.h | ||
ProcessFileDescriptorMapWidget.cpp | ||
ProcessFileDescriptorMapWidget.h | ||
ProcessMemoryMapWidget.cpp | ||
ProcessMemoryMapWidget.h | ||
ProcessModel.cpp | ||
ProcessModel.h | ||
ProcessUnveiledPathsWidget.cpp | ||
ProcessUnveiledPathsWidget.h | ||
ThreadStackWidget.cpp | ||
ThreadStackWidget.h |