6#include <unordered_map>
19 template<
typename Hash,
typename Pred>
20 void writeKeyValueFile(
const std::string& filepath,
const std::unordered_map<std::string, std::string, Hash, Pred>& content);
23 concept ReadKeyValueFileImplemented =
24 std::same_as<T, std::vector<std::pair<std::string, std::string>>> ||
25 std::same_as<T, std::map<std::string, std::string>> ||
26 std::same_as<T, std::unordered_map<std::string, std::string>> ;
33 template<ReadKeyValueFileImplemented T>
34 [[nodiscard]] T readKeyValueFile(
const std::string& filepath,
bool removeSpaces=
false);
41 [[nodiscard]] std::vector<char> readBinaryFile(
const std::string& filepath);
Contains utility for strings.