CPP-AP 2.7.0
Command-line argument parser for C++20
|
A helper structure used to represent a program's version. More...
#include <version.hpp>
Public Member Functions | |
std::string | str () const noexcept |
Converts the structure into a string in the v{major}.{minor}.{path} format. | |
Public Attributes | |
std::uint32_t | major |
The major version number. | |
std::uint32_t | minor |
The minor version number. | |
std::uint32_t | patch |
The patch number. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const version &v) |
The stream insertion operator. | |
A helper structure used to represent a program's version.
Definition at line 13 of file version.hpp.
|
inlinenoexcept |
Converts the structure into a string in the v{major}.{minor}.{path}
format.
Definition at line 19 of file version.hpp.
|
friend |
The stream insertion operator.
Definition at line 24 of file version.hpp.
std::uint32_t ap::version::major |
The major version number.
Definition at line 14 of file version.hpp.
std::uint32_t ap::version::minor |
The minor version number.
Definition at line 15 of file version.hpp.
std::uint32_t ap::version::patch |
The patch number.
Definition at line 16 of file version.hpp.