diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-30 09:10:16 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-30 09:10:16 +0100 |
| commit | 36427c0966faa7aecd586b397ed9b845f18172f5 (patch) | |
| tree | 0d86c7ca9ac9e2e768b54d491bf596fb84f5e45a /nihil.monad | |
| parent | 034cd404a129103a8dd7747e6bd00ffd5550da93 (diff) | |
| download | nihil-36427c0966faa7aecd586b397ed9b845f18172f5.tar.gz nihil-36427c0966faa7aecd586b397ed9b845f18172f5.tar.bz2 | |
more refactoring; add stat()
Diffstat (limited to 'nihil.monad')
| -rw-r--r-- | nihil.monad/monad.ccm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nihil.monad/monad.ccm b/nihil.monad/monad.ccm index b462e4c..898f1ee 100644 --- a/nihil.monad/monad.ccm +++ b/nihil.monad/monad.ccm @@ -39,10 +39,10 @@ namespace nihil { */ // An object that starts out unitialized. Initialized by a call to emplace. -template <typename T> +export template <typename T> using deferred = std::optional<T>; -template <typename T> +export template <typename T> struct return_object_holder { // The staging object that is returned (by copy/move) to the caller of // the coroutine. @@ -95,7 +95,7 @@ struct return_object_holder { } }; -template <typename T> +export template <typename T> auto make_return_object_holder(return_object_holder<T>*& p) { return return_object_holder<T>{p}; |
