summaryrefslogtreecommitdiffstats
path: root/src/Option.h
blob: f6e6e2d50296b7729ab1905deee5f9746e361e91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13


template<class T>
class Option
{
public:
	Option(T a_value);
	static Option<T> None();
	template<class U, class F>
	U To(F a_mapper, U a_default) const;
	bool HasValue();
	T GetValue();
};