Class StructuralEqual#
Defined in File structural_equal.h
Class Documentation#
-
class StructuralEqual#
Structural equality comparators.
Public Static Functions
-
static bool Equal(const Any &lhs, const Any &rhs, bool map_free_vars = false, bool skip_tensor_content = false)#
Compare two Any values for structural equality.
- Parameters:
- Returns:
True if the two Any values are structurally equal, false otherwise.
-
static Optional<reflection::AccessPathPair> GetFirstMismatch(const Any &lhs, const Any &rhs, bool map_free_vars = false, bool skip_tensor_content = false)#
Get the first mismatch AccessPath pair when running structural equal comparison between two Any values.
- Parameters:
- Returns:
If comparison fails, return the first mismatch AccessPath pair, otherwise return std::nullopt.
-
static bool Equal(const Any &lhs, const Any &rhs, bool map_free_vars = false, bool skip_tensor_content = false)#