IndexArrayCompare

Functor for lexicographically ordering index arrays.

Defined in Rodin/Array.h

struct IndexArrayCompare;

Public functions

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

Function documentation

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

Compares two index arrays lexicographically.

Parameters
lhs The left-hand side index array.
rhs The right-hand side index array.
Returns true if lhs is lexicographically before rhs.