Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

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

Determines whether a value is equal to another value.

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 | Pointer to value.
  other | Pointer to other value.

Returns
  kTRUE if the values are equal.