1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 16:13:12 +02:00

Convert map/multimap/hash_map to an alias template.

This commit is contained in:
Sadie Powell
2024-01-30 14:28:29 +00:00
parent 1f31621bbf
commit ec7223ace2
+8 -3
View File
@@ -336,9 +336,14 @@ namespace Anope
}
};
template<typename T> class map : public std::map<string, T, ci::less> { };
template<typename T> class multimap : public std::multimap<string, T, ci::less> { };
template<typename T> class hash_map : public std::unordered_map<string, T, hash_ci, compare> { };
template<typename T>
using map = std::map<string, T, ci::less>;
template<typename T>
using multimap = std::multimap<string, T, ci::less>;
template<typename T>
using hash_map = std::unordered_map<string, T, hash_ci, compare>;
#ifndef REPRODUCIBLE_BUILD
static const char *const compiled = __TIME__ " " __DATE__;