<scoped_allocator> operators

Visual Studio 2015
 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see <scoped_allocator> operators on docs.microsoft.com.

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)

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()

<scoped_allocator>

Show: