libycxx

function template · 5 overloads

std::make_shared

Header
<memory>
Scope
std

Overloads

  1. template<class T>
      requires is_bounded_array_v<T>
    constexpr shared_ptr<T> make_shared();
    (1)
  2. template<class T>
      requires is_unbounded_array_v<T>
    constexpr shared_ptr<T> make_shared(size_t N);
    (2)
  3. template<class T>
      requires is_bounded_array_v<T>
    constexpr shared_ptr<T> make_shared(const remove_extent_t<T>& u);
    (3)
  4. template<class T, class... Args>
      requires (!is_array_v<T>)
    constexpr shared_ptr<T> make_shared(Args&&... args);
    (4)
  5. template<class T>
      requires is_unbounded_array_v<T>
    constexpr shared_ptr<T> make_shared(size_t N, const remove_extent_t<T>& u);
    (5)