MCPcopy Create free account
hub / github.com/MyGUI/mygui / operator-=

Method operator-=

MyGUIEngine/include/MyGUI_Delegate.h:244–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242 }
243
244 void operator-=(IDelegate* _delegate)
245 {
246 if (!_delegate)
247 return;
248 auto found = std::find_if(
249 mListDelegates.begin(),
250 mListDelegates.end(),
251 [=](const auto& delegate) { return delegate && delegate->compare(_delegate); });
252 if (found != mListDelegates.end())
253 {
254 if (found->get() == _delegate)
255 _delegate = nullptr;
256 found->reset();
257 }
258 delete _delegate;
259 }
260
261 void operator()(Args... args) const
262 {

Callers

nothing calls this directly

Calls 5

beginMethod · 0.45
endMethod · 0.45
compareMethod · 0.45
getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected