[#bsl-make_shared_for_overwrite-0d]
= xref:bsl.adoc[bsl]::make&lowbar;shared&lowbar;for&lowbar;overwrite
:relfileprefix: ../
:mrdocs:

Return a `shared&lowbar;ptr` managing a newly created object&period;

== Synopses

Declared in `&lt;bslstl&lowbar;sharedptr&period;h&gt;`

Return a `shared&lowbar;ptr` managing a newly created object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ARRAY&lowbar;TYPE&gt;
xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;ARRAY&lowbar;TYPE&gt;]
xref:bsl/make_shared_for_overwrite-05b.adoc[make&lowbar;shared&lowbar;for&lowbar;overwrite]()
requires is&lowbar;bounded&lowbar;array&lt;ARRAY&lowbar;TYPE&gt;&colon;&colon;value;
----

[.small]#xref:bsl/make_shared_for_overwrite-05b.adoc[_» more&period;&period;&period;_]#

Return a `shared&lowbar;ptr` managing a newly created object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ELEMENT&lowbar;TYPE&gt;
xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;ELEMENT&lowbar;TYPE&gt;]
xref:bsl/make_shared_for_overwrite-054.adoc[make&lowbar;shared&lowbar;for&lowbar;overwrite]()
requires !is&lowbar;array&lt;ELEMENT&lowbar;TYPE&gt;&colon;&colon;value;
----

[.small]#xref:bsl/make_shared_for_overwrite-054.adoc[_» more&period;&period;&period;_]#

Return a `shared&lowbar;ptr` managing a newly created object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ARRAY&lowbar;TYPE&gt;
xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;ARRAY&lowbar;TYPE&gt;]
xref:bsl/make_shared_for_overwrite-02.adoc[make&lowbar;shared&lowbar;for&lowbar;overwrite](std::size&lowbar;t numElements)
requires is&lowbar;unbounded&lowbar;array&lt;ARRAY&lowbar;TYPE&gt;&colon;&colon;value;
----

[.small]#xref:bsl/make_shared_for_overwrite-02.adoc[_» more&period;&period;&period;_]#

== Return Value

shared pointer managing a newly created object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numElements*
| number of elements in the unbounded array
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
