MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / findImpl

Function findImpl

src/OpenLoco/src/Ui/WindowManager.cpp:169–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168 template<typename TPred>
169 static Window* findImpl(TPred pred)
170 {
171 auto it = std::find_if(_windows.begin(), _windows.end(), pred);
172 if (it != _windows.end())
173 {
174 return &(*it);
175 }
176 return nullptr;
177 }
178
179 // 0x004C9B56
180 Window* find(WindowType type)

Callers 1

findFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected