首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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如果lhsrhs是平等的,false否则。

2%29true如果lhsrhs是不平等的,false否则。

例外

noexcept规格:

noexcept

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com