Partager via


operator== (<allocators>)

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
    );

Parameters

Parameter

Description

_Left

One of the allocator objects to be tested for equality.

_Right

One of the allocator objects to be tested for equality.

Return Value

true if the allocator objects are equal; false if allocator objects are not equal.

Remarks

This template operator returns _Left.equals(_Right).

Requirements

Header: <allocators>

Namespace: stdext

See Also

Reference

<allocators>