arg_router
1.4.0
C++ command line argument parsing and routing
|
#include <arg_router/policy/program_version.hpp>
Public Types | |
using | string_type = S |
Public Member Functions | |
constexpr | program_version_t ([[maybe_unused]] S str={}) noexcept |
Static Public Member Functions | |
constexpr static std::string_view | program_version () noexcept |
Represents the program version string.
Used by help nodes to produce their output, though in principle can be used by anything that wants to.
If using C++17 then use the template variable helper with the S_
macro; for C++20 and higher, use the constructor directly with a compile-time string literal:
S | Compile-time string |
Definition at line 25 of file program_version.hpp.
using arg_router::policy::program_version_t< S >::string_type = S |
String type.
Definition at line 29 of file program_version.hpp.
|
inlineexplicitconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
Returns the program version.
Definition at line 41 of file program_version.hpp.