diff options
Diffstat (limited to 'src/util/io.hpp')
-rw-r--r-- | src/util/io.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/util/io.hpp b/src/util/io.hpp new file mode 100644 index 0000000..2c248f7 --- /dev/null +++ b/src/util/io.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include "util/concepts.hpp" + +#include <concepts> +#include <filesystem> +#include <string> + +template <typename ContainerType> +requires Container<ContainerType> && HasPushBack<ContainerType> && + std::same_as<typename ContainerType::value_type, std::string> +auto read_file_lines(const std::filesystem::path &path) -> ContainerType; + +#include "io_impl.hpp" |