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

An element comparison helper. More...

#include <types.h>

Data Fields

void const *const user_type_lhs
 
void const *const user_type_rhs
 
void * aux
 

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. User type LHS is considered the left hand side and user type RHS is the right hand side when considering three-way comparison return values. Aux data is a reference to any auxiliary data provided upon container initialization.

Field Documentation

◆ aux

void* ccc_cmp::aux

A reference to aux data provided to container on initialization.

◆ user_type_lhs

void const* const ccc_cmp::user_type_lhs

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

◆ user_type_rhs

void const* const ccc_cmp::user_type_rhs

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


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