Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kBool kValue_VEquals | ( | kType | type,
|  | const void * | value,
|  | const void * | other
| ) |  |
| protected

Protected virtual method that compares two values for equality.

This method can be overridden in derived value types to support kValue_Equals.

The default implementation of this method uses type introspection to compare the values field by field. This approach is not efficient, and in some cases may not produce the desired result. Value types can override this method if it is likely that equality comparisons will be required.

Parameters

  type | Value type.
  value | Value instance pointer.
  other | Value instance pointer for comparison.

Returns
  Operation status.