Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block ratiotile

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View typeid.cpp
#include <typeinfo>
bool Manager::hasTask( const type_info &taskType )
list<Task>::iterator it = mTasks.begin();
for (it; it != mTasks.end(); ++it )
Task task = (*it);
if(typeid(*task) == taskType) return true;
You can’t perform that action at this time.