forked from boostorg/core
Update empty_value docs
This commit is contained in:
@@ -90,11 +90,11 @@ public:
|
|||||||
empty_value() = default;
|
empty_value() = default;
|
||||||
|
|
||||||
template<class... Args>
|
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{ };
|
inline constexpr empty_init_t empty_init{ };
|
||||||
@@ -121,8 +121,9 @@ inline constexpr empty_init_t empty_init{ };
|
|||||||
[section Constructors]
|
[section Constructors]
|
||||||
|
|
||||||
[variablelist
|
[variablelist
|
||||||
[[`empty_value() = default;`][Default initialize the value]]
|
[[`constepxr empty_value() = default;`][Default initialize the value]]
|
||||||
[[`template<class... Args> empty_value(empty_init_t, Args&&... args);`]
|
[[`template<class... Args>
|
||||||
|
constepxr empty_value(empty_init_t, Args&&... args);`]
|
||||||
[Initialize the value with `std::forward<Args>(args)...`]]]
|
[Initialize the value with `std::forward<Args>(args)...`]]]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
@@ -130,8 +131,8 @@ inline constexpr empty_init_t empty_init{ };
|
|||||||
[section Member functions]
|
[section Member functions]
|
||||||
|
|
||||||
[variablelist
|
[variablelist
|
||||||
[[`const T& get() const noexcept;`][Returns the value]]
|
[[`constepxr const T& get() const noexcept;`][Returns the value]]
|
||||||
[[`T& get() noexcept;`][Returns the value]]]
|
[[`constepxr T& get() noexcept;`][Returns the value]]]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user