Compares two wrappers for equality by their owned values.

Synopsis

Declared in <folly/Indirect.h>

template<
    typename U,
    typename AA>
constexpr
bool
operator==(
    indirect const& lhs,
    indirect<U, AA> const& rhs) noexcept(noexcept(bool(*lhs == *rhs)));
Note

This function is a hidden friend of indirect, declared only inside that class: it can be found only through argument-dependent lookup.

Description

Two valueless operands compare equal, and a valueless operand is unequal to a valued one.

Return Value

true if the wrappers are equal.

Parameters

Name

Description

lhs

The left‐hand wrapper.

rhs

The right‐hand wrapper.

Created with MrDocs