diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-30 14:28:29 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-30 14:29:17 +0000 |
commit | ec7223ace23433b46de58d9ac5be6795bef8fec3 (patch) | |
tree | 2a059bd538f746c81fd84e32792ee750c2286df7 | |
parent | 1f31621bbffa885992d7a3062bb8d2369d7c96d2 (diff) |
Convert map/multimap/hash_map to an alias template.
-rw-r--r-- | include/anope.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/anope.h b/include/anope.h index ee9797627..7ffc90729 100644 --- a/include/anope.h +++ b/include/anope.h @@ -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__; |