sys_usbd: Implemented sys_usbd_unregister_extra_ldd()

This commit is contained in:
brian218 2023-06-05 00:45:04 +08:00 committed by kd-11
parent da0c9c2ce9
commit c85775922e
6 changed files with 134 additions and 93 deletions

View file

@ -186,4 +186,23 @@ namespace fmt
const u8* buf;
usz len;
};
struct string_hash
{
using hash_type = std::hash<std::string_view>;
using is_transparent = void;
std::size_t operator()(const char* str) const
{
return hash_type{}(str);
}
std::size_t operator()(std::string_view str) const
{
return hash_type{}(str);
}
std::size_t operator()(std::string const& str) const
{
return hash_type{}(str);
}
};
}