|
VoltMod
C++23 framework for CS2 server plugins
|
#include <Args.hpp>
Public Member Functions | |
| template<class U = T> | |
| decltype(U::Value) | ValueOr (decltype(U::Value) fallback) const |
Public Attributes | |
| std::optional< T > | Value |
An argument the caller may omit. Only trailing arguments may be Opt, and an Opt may not wrap another Opt.
|
inline |
The argument's own value, or fallback when the caller omitted it.
Definition at line 147 of file Args.hpp.
References VoltMod::ReadFile(), and VoltMod::Args::Opt< T >::Value.
| std::optional<T> VoltMod::Args::Opt< T >::Value |
Definition at line 143 of file Args.hpp.
Referenced by VoltMod::Args::Opt< T >::ValueOr().