[#absl-NoDestructor-08-2constructor-04e]
= xref:absl.adoc[absl]::xref:absl/NoDestructor-08.adoc[NoDestructor]::NoDestructor
:relfileprefix: ../../
:mrdocs:

Forwards copy construction for T&period; Enables usage like this&colon; static NoDestructor&lt;std&colon;&colon;array&lt;string, 3&gt;&gt; x&lcub;&lcub;&lcub;&quot;1&quot;, &quot;2&quot;, &quot;3&quot;&rcub;&rcub;&rcub;&semi; static NoDestructor&lt;std&colon;&colon;vector&lt;int&gt;&gt; x&lcub;&lcub;1, 2, 3&rcub;&rcub;&semi;

== Synopsis

Declared in `&lt;absl&sol;base&sol;no&lowbar;destructor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
NoDestructor(T const& x);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| The value to copy&hyphen;construct the wrapped `T` from&period;
|===


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