boost::openmethod::operator==

Compare two virtual_ptr objects for equality.

Synopsis

Declared in <boost/openmethod/core.hpp>

template<
    class Left,
    class Right,
    class Registry>
bool
operator==(
    virtual_ptr<Left, Registry> const& left,
    virtual_ptr<Right, Registry> const& right);

Description

Compare the underlying object pointers for equality. The v‐table pointers are not compared.!

Return Value

true if both virtual_ptr objects point to the same object, or both are nullptr, false otherwise.

Template Parameters

Name

Description

Left

The type of the left‐hand side argument.

Right

The type of the right‐hand side argument.

Registry

A registry.

Parameters

Name

Description

left

A reference to a virtual_ptr.

right

A reference to a virtual_ptr.

Created with MrDocs