8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:43:02 +01:00

Add KeyComparator parameter to GenericMap helpers.

This commit is contained in:
Adriano dos Santos Fernandes 2021-09-10 10:22:57 -03:00
parent ec84cdb189
commit 992bb6cd2b

View File

@ -369,10 +369,18 @@ private:
}; };
typedef GenericMap<Pair<Full<string, string> > > StringMap; typedef GenericMap<Pair<Full<string, string> > > StringMap;
template <typename T, typename V> using NonPooledMap = GenericMap<Pair<NonPooled<T, V>>>;
template <typename T, typename V> using LeftPooledMap = GenericMap<Pair<Left<T, V>>>; template <typename T, typename V, typename KeyComparator = DefaultComparator<T>>
template <typename T, typename V> using RightPooledMap = GenericMap<Pair<Right<T, V>>>; using NonPooledMap = GenericMap<Pair<NonPooled<T, V>>, KeyComparator>;
template <typename T, typename V> using FullPooledMap = GenericMap<Pair<Full<T, V>>>;
template <typename T, typename V, typename KeyComparator = DefaultComparator<T>>
using LeftPooledMap = GenericMap<Pair<Left<T, V>>, KeyComparator>;
template <typename T, typename V, typename KeyComparator = DefaultComparator<T>>
using RightPooledMap = GenericMap<Pair<Right<T, V>>, KeyComparator>;
template <typename T, typename V, typename KeyComparator = DefaultComparator<T>>
using FullPooledMap = GenericMap<Pair<Full<T, V>>, KeyComparator>;
} }