29 [[nodiscard]] std::string
str() const noexcept {
30 return std::format(
"v{}.{}.{}", this->major, this->minor, this->patch);
A type representing the absence of a value. This type is used for arguments that should not store any...
A helper structure used to represent a program's version.
std::string str() const noexcept
Converts the structure into a string in the v{major}.{minor}.{path} format.
friend std::ostream & operator<<(std::ostream &os, const version &v)
The stream insertion operator.
std::uint32_t major
The major version number.
std::uint32_t minor
The minor version number.
std::uint32_t patch
The patch number.