| 123456789101112131415161718 |
- #ifndef INPUT_H
- #define INPUT_H
- #include <string>
- #include <optional>
- std::string ReadFile(const std::string &filepath);
- class Lines {
- private:
- std::string_view text_;
- public:
- explicit Lines(std::string_view text) : text_(text) {}
- std::optional<std::string_view> Next();
- };
- #endif
|