libycxx

member function template · 2 overloads

std::any::emplace

Header
<any>
Scope
std::any

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);
    (1)
  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);
    (2)