summaryrefslogtreecommitdiffstats
path: root/src/Option.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Option.h')
-rw-r--r--src/Option.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Option.h b/src/Option.h
new file mode 100644
index 000000000..f6e6e2d50
--- /dev/null
+++ b/src/Option.h
@@ -0,0 +1,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();
+};