summaryrefslogtreecommitdiff
path: root/include/erebos/storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/erebos/storage.h')
-rw-r--r--include/erebos/storage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/erebos/storage.h b/include/erebos/storage.h
index c506dfd..ed537eb 100644
--- a/include/erebos/storage.h
+++ b/include/erebos/storage.h
@@ -230,8 +230,11 @@ public:
std::string value;
};
+ struct Empty {};
+
typedef std::variant<
std::monostate,
+ Empty,
int,
std::string,
std::vector<uint8_t>,
@@ -253,6 +256,7 @@ public:
operator bool() const;
+ std::optional<Empty> asEmpty() const;
std::optional<int> asInteger() const;
std::optional<std::string> asText() const;
std::optional<std::vector<uint8_t>> asBinary() const;