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
// This code is in the public domain, feel free to use it in anyway you'd | |
// like to. | |
#include <iostream> | |
#include <functional> | |
using namespace std; | |
template<class A> | |
class Maybe { | |
protected: | |
A a; |