operator==,!=<div class="t-tr-text">(性病:: scoped_allocator_adaptor)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">(std::scoped_allocator_adaptor)</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| template< class OuterAlloc1, class OuterAlloc2, class... InnerAllocs > bool operator==( const scoped_allocator_adaptor<OuterAlloc1, InnerAllocs...>& lhs, |
(C++11 起) | |
| template< class OuterAlloc1, class OuterAlloc2, class... InnerAllocs > bool operator!=( const scoped_allocator_adaptor<OuterAlloc1, InnerAllocs...>& lhs, |
(C++11 起) | |
比较两个范围内的分配器适配器。两个这样的分配是平等的,如果:
Original:
Compares two scoped allocator adaptors. Two such allocators are equal if:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- lhs.outer_allocator() == rhs.outer_allocator(), and
- if sizeof...(InnerAllocs) > 0, lhs.inner_allocator() == rhs.inner_allocator().
[编辑] 参数
| lhs, rhs | - | 范围内的分配器适配器进行比较
Original: scoped allocator adaptors to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
1)
如果true返回
lhs和rhs是平等的,false否则.Original:
Returns true if
lhs and rhs are equal, false otherwise.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
2)
返回true和
lhsrhs如果不相等,false否则.Original:
Returns true if
lhs and rhs are not equal, false otherwise.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.