mrdocs::Optional::emplace
In‐place construct a new value, replacing any existing one.
Synopsis
Declared in <mrdocs/ADT/Optional.hpp>
template<class... Args>
requires std::is_constructible_v<T, Args...>
constexpr
value_type&
emplace(Args&&... args) noexcept(/* see-below */);
Exception specification
This function is potentially-throwing unless std::is_nothrow_constructible_v<T, Args...>.
Parameters
Name |
Description |
args |
The arguments to forward to T's constructor. |
Created with MrDocs