ArrayMapSelector< SORTED, COMPARE, ARRAY > Class Template Reference Data Structures

#include <arraymap.h>

详细描述

template<Bool SORTED = true, typename COMPARE = DefaultCompare, typename ARRAY = BaseArraySelector<>>
class maxon::ArrayMapSelector< SORTED, COMPARE, ARRAY >

This selector class is used for template parameters which select the map implementation to use. It will then instruct the template to use the ArrayMap implementation. For example, RangeSet uses an underlying BurstTrieMap by default. If you want to use an ArrayMap instead, you'd write

RangeSet<Int, ArrayMapSelector<>> set;
Template Parameters
SORTED Shall a sorted array map be selected?
COMPARE Class to be used to compare the keys.
ARRAY Selector for the array implementation that this map shall use.

Public Types

template<typename K , typename V >
using  类型 = ArrayMap < K, V, SORTED, COMPARE, ARRAY >

Member Typedef Documentation

◆  类型

using 类型 = ArrayMap <K, V, SORTED, COMPARE, ARRAY>