function template · 2 overloads
std::allocate_shared_for_overwrite
- Header
<memory>- Draft
- [memory.syn]
- Scope
std- cppreference
- std::allocate_shared_for_overwrite
Overloads
- (1)
template<class T, class A> requires (!is_unbounded_array_v<T>) constexpr shared_ptr<T> allocate_shared_for_overwrite(const A& a); - (2)
template<class T, class A> requires is_unbounded_array_v<T> constexpr shared_ptr<T> allocate_shared_for_overwrite(const A& a, size_t N);