mrdocs::Expected::emplace
emplace overloads
Synopses
Declared in <mrdocs/Support/Expected.hpp>
Reconstruct the value in‐place, discarding any current state.
template<class... Args>
requires std::is_nothrow_constructible_v<T, Args...>
constexpr
T&
emplace(Args&&... args) noexcept;
Reconstruct the value from an initializer list.
template<
class U,
class... Args>
requires std::is_nothrow_constructible_v<
T, std::initializer_list<U>&, Args...>
constexpr
T&
emplace(
std::initializer_list<U> il,
Args&&... args) noexcept;
Parameters
| Name | Description |
|---|---|
args |
Arguments forwarded to the value constructor. |
il |
Initializer list forwarded to the value constructor. |
Created with MrDocs