char_traits::eq

static bool eq(const E& x, const E& y);

The static member function returns true if x compares equal to y.