[#fsbridge-FileLock-2constructor-0a]
= xref:fsbridge.adoc[fsbridge]::xref:fsbridge/FileLock.adoc[FileLock]::FileLock
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;util&sol;fs&period;h&gt;`

Deleted default constructor&semi; a FileLock must name a file&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:fsbridge/FileLock/2constructor-08.adoc[FileLock]() = delete;
----

[.small]#xref:fsbridge/FileLock/2constructor-08.adoc[_» more&period;&period;&period;_]#

Deleted copy constructor&semi; a FileLock is not copyable&period;


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

[.small]#xref:fsbridge/FileLock/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Deleted move constructor&semi; a FileLock is not movable&period;


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

[.small]#xref:fsbridge/FileLock/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Construct a lock object for the given file, without yet acquiring the lock&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:fsbridge/FileLock/2constructor-00.adoc[FileLock](xref:fs/path.adoc[fs::path] const& file);
----

[.small]#xref:fsbridge/FileLock/2constructor-00.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The lock that would be copied&period;
| *file*
| The path of the file to lock&period;
|===


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