libycxx

function template · 3 overloads

std::make_unique_for_overwrite

Header
<memory>
Scope
std

Overloads

  1. template<class T>
      requires (!is_array_v<T>)
    constexpr unique_ptr<T> make_unique_for_overwrite();
    (1)
  2. template<class T>
      requires is_unbounded_array_v<T>
    constexpr unique_ptr<T> make_unique_for_overwrite(size_t n);
    (2)
  3. template<class T, class... Args>
      requires is_bounded_array_v<T>
    void make_unique_for_overwrite(Args&&...) = delete;
    (3)