libycxx

function template · 5 overloads

std::allocate_shared

Header
<memory>
Scope
std

Overloads

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