template<class T, class A>
bool operator==(
const Cont <T, A>& lhs,
const Cont <T, A>& rhs);
The template function overloads operator== to compare two objects of template class Cont. The function returns
lhs.size() == rhs.size() && equal(lhs. begin(), lhs. end(), rhs.begin()).