Return true if lhs and rhs have the same value.

Synopsis

Declared in <bslstl_deque.h>

template<
    class VALUE_TYPE,
    class ALLOCATOR>
bool
operator==(
    deque<VALUE_TYPE, ALLOCATOR> const& lhs,
    deque<VALUE_TYPE, ALLOCATOR> const& rhs);

Description

Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two deque 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_TYPE be equality‐comparable (see {Requirements on VALUE_TYPE}).

Return Value

true if the deques compare equal

Parameters

Name

Description

lhs

left‐hand deque to compare

rhs

right‐hand deque to compare

Created with MrDocs