From 4fb09a68e921f3cf3ecd759787ff4fdc69964cec Mon Sep 17 00:00:00 2001 From: Reece Date: Sun, 5 Jun 2022 13:09:44 +0100 Subject: [PATCH] [*] Something about quacking like a duck --- Include/auROXTL/auResult.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Include/auROXTL/auResult.hpp b/Include/auROXTL/auResult.hpp index b6f243c..aae4bbb 100644 --- a/Include/auROXTL/auResult.hpp +++ b/Include/auROXTL/auResult.hpp @@ -64,4 +64,19 @@ struct AuResult { return this->success; } + + bool has_value() const + { + return this->success; + } + + const T &value() const + { + return type; + } + + T &value() + { + return type; + } }; \ No newline at end of file