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