reformat usernamset
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user