# Poco::MongoDB

# struct ElementPtrCompare

Library: MongoDB
Package: MongoDB
Header: Poco/MongoDB/Document.h

## Description

Comparison functor for Element::Ptr with transparent lookup support (C++14+). Allows lookup by std::string without creating Element.

## Member Summary

Member Functions: operator ()

## Types Aliases

### is_transparent

using is_transparent = void;

## Member Functions

### operator ()

bool operator () (
const Element::Ptr & lhs,
const Element::Ptr & rhs
) const noexcept;

### operator ()

bool operator () (
const Element::Ptr & elem,
const std::string & name
) const noexcept;

### operator ()

bool operator () (
const std::string & name,
const Element::Ptr & elem
) const noexcept;