X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fflat_map.h;h=5d888fa9bf6f09661942e3ab53c2333848ed5853;hb=327bacd3687f307a5f8586856a94b16c9e4370bf;hp=bef1404e43373ed991c684ae4b3421dde5069afd;hpb=35b70631f0532a5828b04a8e0c02092a285f331a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/flat_map.h b/include/flat_map.h index bef1404e4..5d888fa9b 100644 --- a/include/flat_map.h +++ b/include/flat_map.h @@ -1,6 +1,7 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2019 Sadie Powell * Copyright (C) 2014 Attila Molnar * * This file is part of InspIRCd. InspIRCd is free software: you can @@ -200,10 +201,10 @@ class flat_map_base } // namespace detail -template > -class flat_set : public detail::flat_map_base +template , typename ElementComp = Comp> +class flat_set : public detail::flat_map_base { - typedef detail::flat_map_base base_t; + typedef detail::flat_map_base base_t; public: typedef typename base_t::iterator iterator; @@ -240,10 +241,10 @@ class flat_set : public detail::flat_map_base } }; -template > -class flat_multiset : public detail::flat_map_base +template , typename ElementComp = Comp> +class flat_multiset : public detail::flat_map_base { - typedef detail::flat_map_base base_t; + typedef detail::flat_map_base base_t; public: typedef typename base_t::iterator iterator; @@ -280,10 +281,10 @@ class flat_multiset : public detail::flat_map_base } }; -template > -class flat_map : public detail::flat_map_base, Comp, T, detail::map_pair_compare, Comp> > +template , typename ElementComp = Comp > +class flat_map : public detail::flat_map_base, Comp, T, detail::map_pair_compare, ElementComp> > { - typedef detail::flat_map_base, Comp, T, detail::map_pair_compare, Comp> > base_t; + typedef detail::flat_map_base, Comp, T, detail::map_pair_compare, ElementComp> > base_t; public: typedef typename base_t::iterator iterator; @@ -333,10 +334,10 @@ class flat_map : public detail::flat_map_base, Comp, T, detail:: } }; -template > -class flat_multimap : public detail::flat_map_base, Comp, T, detail::map_pair_compare, Comp> > +template , typename ElementComp = Comp > +class flat_multimap : public detail::flat_map_base, Comp, T, detail::map_pair_compare, ElementComp> > { - typedef detail::flat_map_base, Comp, T, detail::map_pair_compare, Comp> > base_t; + typedef detail::flat_map_base, Comp, T, detail::map_pair_compare, ElementComp> > base_t; public: typedef typename base_t::iterator iterator;