Equality operators

Synopses

Declared in <bslma_managedptrdeleter.h>

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    ManagedPtrDeleter const& lhs,
    ManagedPtrDeleter const& rhs);

Return true if the specified lhs and rhs are proxies for the same bslma::TestAllocator object.

template<
    class T1,
    class T2>
bool
operator==(
    StdTestAllocator<T1> const& lhs,
    StdTestAllocator<T2> const& rhs);

Return true if the specified lhs is a proxy for the specified rhs.

template<class TYPE>
bool
operator==(
    StdTestAllocator<TYPE> const& lhs,
    TestAllocator const* rhs);

Return true if the specified rhs is a proxy for the specified lhs.

template<class TYPE>
bool
operator==(
    TestAllocator const* lhs,
    StdTestAllocator<TYPE> const& rhs);

Return Value

  • true if lhs and rhs have the same value, and false otherwise

  • true if lhs and rhs share the same mechanism object.

  • true if lhs is a proxy for rhs.

  • true if rhs is a proxy for lhs.

Parameters

Name

Description

lhs

The left‐hand ManagedPtrDeleter operand.

rhs

The right‐hand ManagedPtrDeleter operand.

Created with MrDocs