|
C Container Collection (CCC)
|
An element comparison helper. More...
#include <types.h>
An element comparison helper.
This type helps the user define the comparison callback function, if the container takes a standard element comparison function, and helps avoid swappable argument errors. Any type LHS is considered the left hand side and any type RHS is the right hand side when considering three-way comparison return values. Context data is a reference to any context data provided upon container initialization.
Data Fields | |
| void const *const | type_left |
| void const *const | type_right |
| void * | context |
| void* CCC_Type_comparator_context::context |
A reference to context data provided to container on initialization.
| void const* const CCC_Type_comparator_context::type_left |
The left hand side for a three-way comparison operation.
| void const* const CCC_Type_comparator_context::type_right |
The right hand side for a three-way comparison operation.