[#ArgsManager-LockSettings]
= xref:ArgsManager.adoc[ArgsManager]::LockSettings
:relfileprefix: ../
:mrdocs:

Access settings with lock held&period;

== Synopsis

Declared in `&lt;common&sol;args&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Fn&gt;
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e381af2a8)&rsqb;&rsqb;
void
LockSettings(Fn&& fn);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fn*
| Callable invoked with the settings while the lock is held&period;
|===


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