[#ApplyArgsManOptions]
= ApplyArgsManOptions
:mrdocs:

Overlay the options set in `argsman` on top of corresponding members in `mempool&lowbar;opts&period;` Returns an error if one was encountered&period;

== Synopsis

Declared in `&lt;node&sol;mempool&lowbar;args&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
xref:util/Result.adoc[util::Result&lt;void&gt;]
ApplyArgsManOptions(
    xref:ArgsManager.adoc[ArgsManager] const& argsman,
    xref:CChainParams.adoc[CChainParams] const& chainparams,
    xref:kernel/MemPoolOptions.adoc[kernel::MemPoolOptions]& mempool&lowbar;opts);
----

== Return Value

An empty result on success, or an error describing the invalid option&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *argsman* [in]
| The ArgsManager in which to check set options&period;
| *chainparams* [in]
| Chain parameters used to validate and bound the options&period;
| *mempool&lowbar;opts* [inout]
| The MemPoolOptions to modify according to `argsman&period;`
|===


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