Edit

Share via


<memory_resource> operators

operator!=

Tests if the memory_resource object on the left side of the operator is not equal to the memory_resource object on the right side.

template <class T1, class T2>
    bool operator!=(const polymorphic_allocator<T1>& a, const polymorphic_allocator<T2>& b) noexcept;

operator==

Tests if the memory_resource object on the left side of the operator is equal to the memory_resource object on the right side.

template <class T1, class T2>
    bool operator==(const polymorphic_allocator<T1>& a, const polymorphic_allocator<T2>& b) noexcept;