mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-04 13:11:09 -05:00
12 lines
293 B
C++
12 lines
293 B
C++
|
#pragma once
|
||
|
#include "functional_hash.h"
|
||
|
|
||
|
namespace geode::stl {
|
||
|
template <>
|
||
|
struct hash<gd::string> : public __hash_base<size_t, gd::string> {
|
||
|
size_t operator()(const gd::string& s) const noexcept {
|
||
|
return _Hash_impl::hash(s.data(), s.size());
|
||
|
}
|
||
|
};
|
||
|
}
|