A helper structure used to represent a program's version.
More...
#include <types.hpp>
|
| std::string | str () const noexcept |
| | Converts the structure into a string in the v{major}.{minor}.{path} format.
|
| |
|
| std::uint32_t | major = 0u |
| | The major version number.
|
| |
| std::uint32_t | minor = 0u |
| | The minor version number.
|
| |
| std::uint32_t | patch = 0u |
| | The patch number.
|
| |
|
| 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 23 of file types.hpp.
◆ str()
| std::string ap::version::str |
( |
| ) |
const |
|
inlinenoexcept |
Converts the structure into a string in the v{major}.{minor}.{path} format.
Definition at line 29 of file types.hpp.
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const version & |
v |
|
) |
| |
|
friend |
The stream insertion operator.
Definition at line 34 of file types.hpp.
◆ major
| std::uint32_t ap::version::major = 0u |
The major version number.
Definition at line 24 of file types.hpp.
◆ minor
| std::uint32_t ap::version::minor = 0u |
The minor version number.
Definition at line 25 of file types.hpp.
◆ patch
| std::uint32_t ap::version::patch = 0u |
The patch number.
Definition at line 26 of file types.hpp.
The documentation for this struct was generated from the following file: