Class LexicographicExprCompare¶
Defined in File lexicographic_order.hpp
Class Documentation¶
-
class LexicographicExprCompare¶
Strict weak order of expressions based on Expr::lexicographic_compare, i.e. on their contents rather than their hash values. Hence, unlike the (faster) order defined by Expr::operator< , it does not change when the hashing algorithm changes.
Note
the comparison options (in particular the cardinal tensor labels) are captured on construction
Public Functions
-
inline LexicographicExprCompare()¶
-
inline explicit LexicographicExprCompare(LexicographicCompareOptions opts)¶
-
inline std::weak_ordering compare(const Expr &a, const Expr &b) const¶
- Returns:
the order of
arelative tob
-
inline const LexicographicCompareOptions &options() const¶
-
inline LexicographicExprCompare()¶