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

Method operator+=

MyGUIEngine/include/MyGUI_Delegate.h:231–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 }
230
231 void operator+=(IDelegate* _delegate)
232 {
233 if (!_delegate)
234 return;
235 auto found = std::find_if(
236 mListDelegates.begin(),
237 mListDelegates.end(),
238 [=](const auto& delegate) { return delegate && delegate->compare(_delegate); });
239 if (found != mListDelegates.end())
240 MYGUI_EXCEPT("Trying to add same delegate twice.");
241 mListDelegates.emplace_back(_delegate);
242 }
243
244 void operator-=(IDelegate* _delegate)
245 {

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected