operators (std::scoped_allocator_adaptor)
template< class OuterAlloc1, class OuterAlloc2, class... InnerAllocs > bool operator==( const scoped_allocator_adaptor<OuterAlloc1, InnerAllocs...>& lhs, const scoped_allocator_adaptor<OuterAlloc2, InnerAllocs...>& rhs ); | | (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 ); | | (since C++11) |
比较两个作用域分配器适配器。如果下列情况下,两个这样的分配器是相等的:
lhs.outer_allocator() == rhs.outer_allocator(),和
- 如果
sizeof...(InnerAllocs) > 0,,,lhs.inner_allocator() == rhs.inner_allocator()...
参数
lhs, rhs | - | scoped allocator adaptors to compare |
|---|
返回值
1%29true如果lhs和rhs是平等的,false否则。
2%29true如果lhs和rhs是不平等的,false否则。
例外
noexcept规格:
noexcept
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

