operator==,!=(std::scoped_allocator_adaptor)
提供: cppreference.com
<tbody>
</tbody>
template< class OuterAlloc1, class OuterAlloc2, class... InnerAllocs > bool operator==( const scoped_allocator_adaptor<OuterAlloc1, InnerAllocs...>& lhs, const scoped_allocator_adaptor<OuterAlloc2, InnerAllocs...>& rhs ) noexcept; |
(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; |
(C++11以上) | |
2つの scoped allocator adaptor を比較します。 以下の両方を満たす場合、2つのそのようなアロケータは等しくなります。
lhs.outer_allocator() == rhs.outer_allocator()sizeof...(InnerAllocs) > 0の場合、lhs.inner_allocator() == rhs.inner_allocator()
引数
| lhs, rhs | - | 比較する scoped allocator adaptor |
戻り値
1)
lhs と rhs が等しければ true、そうでなければ false。2)
lhs と rhs が等しくなければ true、そうでなければ false。