member function template · 2 overloads
std::any::emplace
- Header
<any>- Draft
- [any.class.general]
- Scope
std::any- cppreference
- std::any::emplace
Overloads
- (1)
template<class T, class... Args, class VT = decay_t<T>> requires is_copy_constructible_v<VT> && is_constructible_v<VT, Args...> VT& emplace(Args&&... args); - (2)
template<class T, class U, class... Args, class VT = decay_t<T>> requires is_copy_constructible_v<VT> && is_constructible_v<VT, initializer_list<U>&, Args...> VT& emplace(initializer_list<U> il, Args&&... args);