From 48bc47cce2fac306600424261198bac849726bd7 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Sat, 6 Aug 2022 21:24:09 -0400 Subject: [PATCH] Update empty_value docs --- doc/empty_value.qbk | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/empty_value.qbk b/doc/empty_value.qbk index f693aeb..ef82f20 100644 --- a/doc/empty_value.qbk +++ b/doc/empty_value.qbk @@ -90,11 +90,11 @@ public: empty_value() = default; template - empty_value(empty_init_t, Args&&... args); + constepxr empty_value(empty_init_t, Args&&... args); - const T& get() const noexcept; + constepxr const T& get() const noexcept; - T& get() noexcept; + constepxr T& get() noexcept; }; inline constexpr empty_init_t empty_init{ }; @@ -121,8 +121,9 @@ inline constexpr empty_init_t empty_init{ }; [section Constructors] [variablelist -[[`empty_value() = default;`][Default initialize the value]] -[[`template empty_value(empty_init_t, Args&&... args);`] +[[`constepxr empty_value() = default;`][Default initialize the value]] +[[`template +constepxr empty_value(empty_init_t, Args&&... args);`] [Initialize the value with `std::forward(args)...`]]] [endsect] @@ -130,8 +131,8 @@ inline constexpr empty_init_t empty_init{ }; [section Member functions] [variablelist -[[`const T& get() const noexcept;`][Returns the value]] -[[`T& get() noexcept;`][Returns the value]]] +[[`constepxr const T& get() const noexcept;`][Returns the value]] +[[`constepxr T& get() noexcept;`][Returns the value]]] [endsect]