IndexArrayEquality

Functor for comparing two index arrays for equality.

Defined in Rodin/Array.h

struct IndexArrayEquality;

This functor provides an operator() that returns true if the two given index arrays are equal. Two arrays are considered equal if they are both empty, or if they have the same size and all corresponding elements are equal.

Public functions

auto operator()(const IndexArray& lhs, const IndexArray& rhs) const -> bool
Compares two index arrays for equality.

Function documentation

bool operator()(const IndexArray& lhs, const IndexArray& rhs) const

Compares two index arrays for equality.

Parameters
lhs The left-hand side index array.
rhs The right-hand side index array.
Returns true if the arrays are equal, false otherwise.