BloombergLP::bdlc::operator==

Return whether the specified queues have the same value.

Synopsis

Declared in <bdlc_queue.h>

template<class T>
bool
operator==(
    Queue<T> const& lhs,
    Queue<T> const& rhs);

Description

Return true if the specified lhs and rhs queues have the same value, and false otherwise. Two queues have the same value if they have the same length and the same element value at each respective index position.

Return Value

true if equal, and false otherwise

Parameters

NameDescription
lhsleft-hand-side queue to compare
rhsright-hand-side queue to compare