Files
FEX-Emu--FEX/FEXCore/include/FEXCore/fextl/string.h
T
Lioncache 569d7297f0 fextl/string: Correct <filesystem> include to <functional>
This was unintentionally putting all the filesystem utilities into headers implicitly.
2025-09-29 23:54:08 -04:00

21 lines
542 B
C++

// SPDX-License-Identifier: MIT
#pragma once
#include <FEXCore/fextl/allocator.h>
#include <functional>
#include <string>
namespace fextl {
template<class CharT, class Traits = std::char_traits<CharT>, class Allocator = fextl::FEXAlloc<CharT>>
using basic_string = std::basic_string<CharT, Traits, Allocator>;
using string = fextl::basic_string<char>;
} // namespace fextl
template<>
struct std::hash<fextl::string> {
std::size_t operator()(const fextl::string& s) const noexcept {
return std::hash<std::string_view> {}(s);
};
};