MCPcopy Create free account
hub / github.com/carbonengine/trinity / Unregister

Method Unregister

trinity/Tr2Event.h:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134template <typename... Args>
135void Tr2Event<Args...>::Unregister( IRoot* owner, CallbackFunc func )
136{
137 auto found = find_if( begin( m_listeners ), end( m_listeners ), [owner, func]( auto& x ) { return x.owner == owner && x.callback == func; } );
138 CCP_ASSERT_M( found != end( m_listeners ),
139 "Trying to unregister a listener to the event when it was not registered" );
140 m_listeners.erase( found );
141}
142
143template <typename... Args>
144template <typename C, void ( C::*Function )( Args... )>

Callers

nothing calls this directly

Calls 2

beginFunction · 0.70
endFunction · 0.70

Tested by

no test coverage detected