ArrayMapHelper< K, V, SORTED, COMPARE, ARRAY > Class Template Reference

#include <arraymap.h>

Public Types

using Entry = Pair< K, V >
 
using Array = typename ARRAY::template Type< Entry >
 

Static Public Member Functions

static ResultRef< EntryInsert (Array &array, const K &key, Bool &created, Int &index)
 
template<typename KEY >
static const EntryFind (const Array &array, const KEY &key)
 
template<typename KEY >
static Int FindIndex (const Array &array, const KEY &key)
 
static Bool Erase (Array &array, const K &key)
 

Member Typedef Documentation

◆ Entry

using Entry = Pair<K, V>

◆ Array

using Array = typename ARRAY::template Type<Entry>

Member Function Documentation

◆ Insert()

static ResultRef<Entry> Insert ( Array array,
const K &  key,
Bool created,
Int index 
)
static

◆ Find()

static const Entry* Find ( const Array array,
const KEY &  key 
)
static

◆ FindIndex()

static Int FindIndex ( const Array array,
const KEY &  key 
)
static

◆ Erase()

static Bool Erase ( Array array,
const K &  key 
)
static