if(tok2.value.at(0) == '(' )
tok2.value.at(0)
if( tok2.value[0] == '(' )
1234567
#include <algorithm> //... int match[] = {'(',')'}; std::string::iterator it = std::find_first_of(tok2.value.begin(),tok2.value.end(),match, match +2); if(it != tok2.value.end()) std::cout << "FOUND" << std::endl; //You know you have found it.