#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

class foo {
public:
	foo(char ch, int flag = int()) : flag(flag), ch(ch) {}
	int flag;
	char ch;
	inline bool operator ==(const char & rhs) { return ch == rhs; }
};

int main(void) {
	vector<foo> vec;
	vec.push_back(('a', 1));
	vec.push_back(('b', 2));
	vec.push_back(('c', 3));
	vector<foo>::iterator it = std::find(vec.begin(), vec.end(), 'b');
	if (it != vec.end()) {
		cout << "found" << endl;
	}
	return 0;
}