operator== function template — Compares lists for equality
template <typename T, typename A>
bool operator==(const list<T,A>& x, const list<T,A>& y);
The ==
operator returns
true
if x
and y
have the same size and their elements are equal, that is, x.size( )
==
y.size(
)
&&
equals(x.begin( )
, x.end( )
, y.begin( ))
.