operator==,!=(std::scoped_allocator_adaptor)
Since C++11
template< class OuterAlloc1, class OuterAlloc2, class... InnerAllocs >
bool operator==( const scoped_allocator_adaptor<OuterAlloc1, InnerAllocs...>& lhs,
const scoped_allocator_adaptor<OuterAlloc2, InnerAllocs...>& rhs ) noexcept;
Since C++11, Until
template< class OuterAlloc1, class OuterAlloc2, class... InnerAllocs >
bool operator!=( const scoped_allocator_adaptor<OuterAlloc1, InnerAllocs...>& lhs,
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
- Returns
true
iflhs
andrhs
are equal,false
otherwise. - Returns
true
iflhs
andrhs
are not equal,false
otherwise.