From ec7223ace23433b46de58d9ac5be6795bef8fec3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 30 Jan 2024 14:28:29 +0000 Subject: [PATCH] Convert map/multimap/hash_map to an alias template. --- include/anope.h | 11 ++++++++--- 1 file 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 class map : public std::map { }; - template class multimap : public std::multimap { }; - template class hash_map : public std::unordered_map { }; + template + using map = std::map; + + template + using multimap = std::multimap; + + template + using hash_map = std::unordered_map; #ifndef REPRODUCIBLE_BUILD static const char *const compiled = __TIME__ " " __DATE__;