| title | <allocators> operators | Microsoft Docs |
|---|---|
| ms.custom | |
| ms.date | 11/04/2016 |
| ms.reviewer | |
| ms.suite | |
| ms.tgt_pltfrm | |
| ms.topic | article |
| f1_keywords | |
| ms.assetid | b55d67cb-3c69-46bf-ad40-e845fb096c4e |
| caps.latest.revision | 11 |
| manager | ghogen |
| operator!= | operator== |
Tests for inequality between allocator objects of a specified class.
template <class Type, class Sync>
bool operator!=(
const allocator_base<Type, Sync>& left,
const allocator_base<Type, Sync>& right);
| Parameter | Description |
|---|---|
left |
One of the allocator objects to be tested for inequality. |
right |
One of the allocator objects to be tested for inequality. |
true if the allocator objects are not equal; false if allocator objects are equal.
The template operator returns !(left == right).
Tests for equality between allocator objects of a specified class.
template <class Type, class Sync>
bool operator==(
const allocator_base<Type, Sync>& left,
const allocator_base<Type, Sync>& right);
| Parameter | Description |
|---|---|
left |
One of the allocator objects to be tested for equality. |
right |
One of the allocator objects to be tested for equality. |
true if the allocator objects are equal; false if allocator objects are not equal.
This template operator returns left.equals(right).