[#AutoFile-2constructor-0e]
= xref:AutoFile.adoc[AutoFile]::AutoFile
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;streams&period;h&gt;`

Deleted copy constructor&semi; AutoFile is non&hyphen;copyable&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:AutoFile/2constructor-0b.adoc[AutoFile](xref:AutoFile.adoc[AutoFile] const& other) = delete;
----

[.small]#xref:AutoFile/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Construct a wrapper taking ownership of `file`, optionally obfuscating its data&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:AutoFile/2constructor-05.adoc[AutoFile](
    FILE* file,
    xref:Obfuscation.adoc[Obfuscation] const& obfuscation = &lcub;&rcub;);
----

[.small]#xref:AutoFile/2constructor-05.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The instance that would be copied&period;
| *file*
| C file handle to take ownership of&semi; may be nullptr&period;
| *obfuscation*
| XOR key applied to data as it is read or written&period;
|===


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