I found this class at:
http://www.icce.rug.nl/documents/cpl...7.html#FINDEND
class Twice
{
public:
bool operator()(size_t first, size_t second) const
{
return first == (second << 1);
}
};
it is used as the last argument to find_end() but I don't understand
what it does and why it is needed.
I have tried calling it with various integers but it always outputs 0:
Twice t = Twice();
bool t_bool = t.operator ()(4,8);
std::cout << t_bool << std::endl;