| 1 |
// Copyright (c) Lewis Baker |
| 2 |
// Licenced under MIT license. See LICENSE.txt for details. |
| 3 |
|
| 4 |
#if __has_include(<coroutine>) |
| 5 |
#include <coroutine> |
| 6 |
#else |
| 7 |
#include <experimental/coroutine> |
| 8 |
namespace std |
| 9 |
{ |
| 10 |
using std::experimental::coroutine_handle; |
| 11 |
using std::experimental::noop_coroutine; |
| 12 |
using std::experimental::suspend_always; |
| 13 |
using std::experimental::suspend_never; |
| 14 |
} // namespace std |
| 15 |
#endif |
| 16 |
|
| 17 |
#include <type_traits> |
| 18 |
#include <utility> |
| 19 |
#include <exception> |
| 20 |
#include <iterator> |
| 21 |
#include <functional> |
| 22 |
#include <string> |
| 23 |
#include <dirent.h> |
| 24 |
#include <iostream> |
| 25 |
|
| 26 |
|
| 27 |
#include "generatorpromise.h" |
| 28 |
#include "sentinel.h" |
| 29 |
#include "iterator.h" |
| 30 |
#include "generator.h" |
| 31 |
#include "recursivegenerator.h" |
| 32 |
|
| 33 |
using DirEntry = dirent; |
| 34 |
using Pair = std::pair<DirEntry, char const *>; |
| 35 |
|
| 36 |
using namespace std; |