function template · 5 overloads
std::allocate_shared
- Header
<memory>- Scope
std- cppreference
- std::allocate_shared
Overloads
- (1)
template<class T, class A> requires is_bounded_array_v<T> constexpr shared_ptr<T> allocate_shared(const A& a); - (2)
template<class T, class A> requires is_unbounded_array_v<T> constexpr shared_ptr<T> allocate_shared(const A& a, size_t N); - (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); - (4)
template<class T, class A, class... Args> requires (!is_array_v<T>) constexpr shared_ptr<T> allocate_shared(const A& a, Args&&... args); - (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);