mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Update empty_value docs
This commit is contained in:
@ -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]
|
||||
|
||||
|
Reference in New Issue
Block a user