| 417 | ReadResult<std::string> readLine() noexcept; |
| 418 | |
| 419 | template <typename T> ReadResult<T> read() noexcept |
| 420 | { |
| 421 | if (is) { |
| 422 | T result; |
| 423 | *is >> result; |
| 424 | // Use operator bool, see ReadResult::good() docstring |
| 425 | return ReadResult<T>{result, is->eof(), bool(is)}; |
| 426 | } |
| 427 | return ReadResult<T>{T{}, true, false}; |
| 428 | } |
| 429 | |
| 430 | std::string readFile(); |
| 431 |
no outgoing calls