<memory_resource> 运算符

operator!=

测试运算符左侧的 memory_resource 对象与右侧的 memory_resource 对象是否不相等。

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

operator==

测试运算符左侧的 memory_resource 对象与右侧的 memory_resource 对象是否相等。

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