Class compare#

Inheritance Relationships#

Base Type#

Class Documentation#

class compare : public tvm::ffi::reflection::InfoTrait#

InfoTrait to control whether a field participates in recursive comparison.

Usage: refl::compare(false) marks a field to be excluded from RecursiveEq/RecursiveLt/etc.

Public Functions

inline explicit compare(bool include)#

Constructor.

Parameters:

include – Whether the field should participate in comparison.

inline void Apply(TVMFFIFieldInfo *info) const#

Apply the compare flag to the field info.

Parameters:

info – The field info.