[#fsbridge-FileLock-2constructor-0a] = xref:fsbridge.adoc[fsbridge]::xref:fsbridge/FileLock.adoc[FileLock]::FileLock :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<util/fs.h>` Deleted default constructor; a FileLock must name a file. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:fsbridge/FileLock/2constructor-08.adoc[FileLock]() = delete; ---- [.small]#xref:fsbridge/FileLock/2constructor-08.adoc[_» more..._]# Deleted copy constructor; a FileLock is not copyable. [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..._]# Deleted move constructor; a FileLock is not movable. [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..._]# Construct a lock object for the given file, without yet acquiring the lock. [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..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | The lock that would be copied. | *file* | The path of the file to lock. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#