<scoped_allocator> 运算符

operator!=
operator==

operator!=

测试两个 scoped_allocator_adaptor 对象是否不相等。

template <class Outer, class... Inner>
bool operator!=(
    const scoped_allocator_adaptor<Outer, Inner...>& left,
    const scoped_allocator_adaptor<Outer, Inner...>& right) noexcept;

参数

left
scoped_allocator_adaptor 对象。

right
正确的 scoped_allocator_adaptor 对象。

返回值

!(left == right)

operator==

测试两个 scoped_allocator_adaptor 对象是否相等。

template <class Outer, class... Inner>
bool operator==(
    const scoped_allocator_adaptor<Outer, Inner...>& left,
    const scoped_allocator_adaptor<Outer, Inner...>& right) noexcept;

参数

left
scoped_allocator_adaptor 对象。

right
正确的 scoped_allocator_adaptor 对象。

返回值

left.outer_allocator() == right.outer_allocator() && left.inner_allocator() == right.inner_allocator()

另请参阅

<scoped_allocator>