tomtetlaw -1 Posting Pro

I want to be able to find a class with a variable in it:

for(int i=0;i<classes.size();i++)
{
    if(class[i].name == classes[i])
        return class[i];
}

I think class would be a list of classes that are instanced.
where classes is a vector of strings.

Is this possible?