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

#include <arraymap.h>

Public Types

using Array = ArrayMapSortedArray< ARRAY, Entry, COMPARE >
 
using IsSorted = std::true_type
 

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)
 
static Int FindIndex (const Array &array, const K &key)
 
static Bool Erase (Array &array, const K &key)
 

Private Types

using Entry = Pair< K, V >
 

Member Typedef Documentation

◆ Entry

using Entry = Pair<K, V>
private

◆ Array

using Array = ArrayMapSortedArray<ARRAY, Entry, COMPARE>

◆ IsSorted

using IsSorted = std::true_type

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 K &  key 
)
static

◆ Erase()

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