CStringCompare Class Reference

#include <compare.h>

Detailed Description

This class can be used as template argument for a HashMap if the HashMap shall use null-terminated C-string keys.

Static Public Member Functions

static constexpr HashInt GetHashCode (const Char *key)
 
static MAXON_ATTRIBUTE_FORCE_INLINE Bool IsEqual (const Char *a, const Char *b)
 
static MAXON_ATTRIBUTE_FORCE_INLINE COMPARERESULT Compare (const Char *a, const Char *b)
 
static MAXON_ATTRIBUTE_FORCE_INLINE Bool LessThan (const Char *a, const Char *b)
 

Member Function Documentation

◆ GetHashCode()

static constexpr HashInt GetHashCode ( const Char key)
staticconstexpr

◆ IsEqual()

static MAXON_ATTRIBUTE_FORCE_INLINE Bool IsEqual ( const Char a,
const Char b 
)
static

◆ Compare()

static MAXON_ATTRIBUTE_FORCE_INLINE COMPARERESULT Compare ( const Char a,
const Char b 
)
static

◆ LessThan()

static MAXON_ATTRIBUTE_FORCE_INLINE Bool LessThan ( const Char a,
const Char b 
)
static