reformat usernamset

This commit is contained in:
Rasmus Karlsson 2019-05-11 13:59:03 +02:00
parent 8c46cbf571
commit 2492a0ba21

View file

@ -6,6 +6,7 @@
#include <unordered_map> #include <unordered_map>
namespace chatterino { namespace chatterino {
class Prefix class Prefix
{ {
public: public:
@ -19,9 +20,11 @@ private:
friend struct std::hash<Prefix>; friend struct std::hash<Prefix>;
}; };
} // namespace chatterino } // namespace chatterino
namespace std { namespace std {
template <> template <>
struct hash<chatterino::Prefix> { struct hash<chatterino::Prefix> {
size_t operator()(const chatterino::Prefix &prefix) const size_t operator()(const chatterino::Prefix &prefix) const
@ -30,9 +33,11 @@ struct hash<chatterino::Prefix> {
size_t(prefix.second.unicode()); size_t(prefix.second.unicode());
} }
}; };
} // namespace std } // namespace std
namespace chatterino { namespace chatterino {
class UsernameSet class UsernameSet
{ {
public: public: