From 5073cc218ad0244c940a091f82cee8c88919d815 Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Mon, 17 Feb 2025 23:01:00 -0600 Subject: [PATCH] Update documentation for cpptrace::nullable --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5cfcb73..c0d3b9b 100644 --- a/README.md +++ b/README.md @@ -816,6 +816,7 @@ namespace cpptrace { template::value, int>::type = 0> struct nullable { T raw_value; + // all members are constexpr for c++17 and beyond, some are constexpr before c++17 nullable& operator=(T value) bool has_value() const noexcept; T& value() noexcept; @@ -825,6 +826,7 @@ namespace cpptrace { void reset() noexcept; bool operator==(const nullable& other) const noexcept; bool operator!=(const nullable& other) const noexcept; + constexpr static T null_value() noexcept; // returns the raw null value constexpr static nullable null() noexcept; // returns a null instance };