C Container Collection (CCC)
Loading...
Searching...
No Matches
CCC_Type_comparator_context Struct Reference

An element comparison helper. More...

#include <types.h>

Detailed Description

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
 

Field Documentation

◆ context

void* CCC_Type_comparator_context::context

A reference to context data provided to container on initialization.

◆ type_left

void const* const CCC_Type_comparator_context::type_left

The left hand side for a three-way comparison operation.

◆ type_right

void const* const CCC_Type_comparator_context::type_right

The right hand side for a three-way comparison operation.


The documentation for this struct was generated from the following file: