variant: Add equals operator helper
This adds a generic equality operator intended to make it
straightforward to compare a variant to other variants or base values.
Change-Id: If59296e650bfb43880931e146e4e50b3d8aaa38f
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/meson.build b/src/meson.build
index 7367761..dd67b35 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -60,6 +60,7 @@
'str/cexpr.cpp',
'str/maps.cpp',
'util/cexec.cpp',
+ 'variant.cpp',
'zstring.cpp',
'zstring_view.cpp',
]
diff --git a/src/variant.cpp b/src/variant.cpp
new file mode 100644
index 0000000..6af326c
--- /dev/null
+++ b/src/variant.cpp
@@ -0,0 +1 @@
+#include <stdplus/variant.hpp>