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