bsl::operator==

Return true if lhs and rhs have the same value.

Synopsis

Declared in <bslstl_queue.h>

template<
    class VALUE,
    class CONTAINER>
bool
operator==(
    queue<VALUE, CONTAINER> const& lhs,
    queue<VALUE, CONTAINER> const& rhs);

Description

Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two queue objects lhs and rhs have the same value if they have the same number of elements, and each element in the ordered sequence of elements of lhs has the same value as the corresponding element in the ordered sequence of elements of rhs. This method requires that the (template parameter) type VALUE be equality-comparable (see {Requirements on VALUE}).

Return Value

true if the queues have the same value, otherwise false

Parameters

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