From a9a5308cf03fcd25492317b844a59019eacfac13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 8 Apr 2023 18:35:46 +0200 Subject: Empty record item type --- include/erebos/storage.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/erebos') 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, @@ -253,6 +256,7 @@ public: operator bool() const; + std::optional asEmpty() const; std::optional asInteger() const; std::optional asText() const; std::optional> asBinary() const; -- cgit v1.2.3