operator==,!=(std::scoped_allocator_adaptor) (3) - Linux Manuals

operator==,!=(std::scoped_allocator_adaptor): operator==,!=(std::scoped_allocator_adaptor)

NAME

operator==,!=(std::scoped_allocator_adaptor) - operator==,!=(std::scoped_allocator_adaptor)

Synopsis


template< class OuterAlloc1, class OuterAlloc2, class... InnerAllocs >
bool operator==( const scoped_allocator_adaptor<OuterAlloc1, InnerAllocs...>& lhs, (since C++11)
const scoped_allocator_adaptor<OuterAlloc2, InnerAllocs...>& rhs ) noexcept;
template< class OuterAlloc1, class OuterAlloc2, class... InnerAllocs >
bool operator!=( const scoped_allocator_adaptor<OuterAlloc1, InnerAllocs...>& lhs, (since C++11)
const scoped_allocator_adaptor<OuterAlloc2, InnerAllocs...>& rhs ) noexcept;


Compares two scoped allocator adaptors. Two such allocators are equal if:


* lhs.outer_allocator() == rhs.outer_allocator(), and
* if sizeof...(InnerAllocs) > 0, lhs.inner_allocator() == rhs.inner_allocator().

Parameters


lhs, rhs - scoped allocator adaptors to compare

Return value


1) Returns true if lhs and rhs are equal, false otherwise.
2) Returns true if lhs and rhs are not equal, false otherwise.