Compartilhar via


<scoped_allocator> operators

 

The latest version of this topic can be found at <scoped_allocator> operators.

operator!= operator==

operator!=

Tests two scoped_allocator_adaptor objects for inequality.

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

Parameters

left
The left scoped_allocator_adaptor object.

right
The right scoped_allocator_adaptor object.

Return Value

!(left == right)

operator==

Tests two scoped_allocator_adaptor objects for equality.

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

Parameters

left
The left scoped_allocator_adaptor object.

right
The right scoped_allocator_adaptor object.

Return Value

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

See Also

<scoped_allocator>