This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Changed awaiter to not leak memory on suspension thanks to /u/Enemii. | |
#include <experimental/coroutine> | |
#include <iostream> | |
#include <memory> | |
#include <optional> | |
#include <utility> | |
template<typename T> | |
class shared_optional { |