[#ArgsManager-GetIntArg-0e] = xref:ArgsManager.adoc[ArgsManager]::GetIntArg :relfileprefix: ../ :mrdocs: `GetIntArg` overloads == Synopses Declared in `<common/args.h>` Return a 64‐bit integer argument, or std::nullopt if it was not set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e381ad9a8)]] std::optional<int64_t> xref:ArgsManager/GetIntArg-0d.adoc[GetIntArg](std::string const& strArg) const; ---- [.small]#xref:ArgsManager/GetIntArg-0d.adoc[_» more..._]# Return a 64‐bit integer argument or default value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e381ad868)]] int64_t xref:ArgsManager/GetIntArg-03.adoc[GetIntArg]( std::string const& strArg, int64_t nDefault) const; ---- [.small]#xref:ArgsManager/GetIntArg-03.adoc[_» more..._]# == Return Value * The argument value, or std::nullopt if unset. * The argument value, or nDefault if unset. == Parameters [cols="1,4"] |=== | Name| Description | *strArg* | Argument to get (e.g. "‐foo"). | *nDefault* | Value returned when the argument is unset. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#