Update empty_value docs

This commit is contained in:
Glen Fernandes
2022-08-06 21:24:09 -04:00
parent e3745b2072
commit 48bc47cce2

View File

@ -90,11 +90,11 @@ public:
empty_value() = default;
template<class... Args>
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<class... Args> empty_value(empty_init_t, Args&&... args);`]
[[`constepxr empty_value() = default;`][Default initialize the value]]
[[`template<class... Args>
constepxr empty_value(empty_init_t, Args&&... args);`]
[Initialize the value with `std::forward<Args>(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]