19 [[nodiscard]] std::string
str() const noexcept {
20 return std::format(
"v{}.{}.{}", this->major, this->minor, this->patch);
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.