mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 00:49:20 +08:00
29 lines
582 B
C++
29 lines
582 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
namespace vcpkg
|
|
{
|
|
struct VersionT
|
|
{
|
|
VersionT();
|
|
VersionT(const std::string& value);
|
|
|
|
std::string value;
|
|
};
|
|
|
|
bool operator ==(const VersionT& left, const VersionT& right);
|
|
bool operator !=(const VersionT& left, const VersionT& right);
|
|
std::string to_printf_arg(const VersionT& version);
|
|
|
|
struct VersionDiff
|
|
{
|
|
VersionT left;
|
|
VersionT right;
|
|
|
|
VersionDiff();
|
|
VersionDiff(const VersionT& left, const VersionT& right);
|
|
|
|
std::string to_string() const;
|
|
};
|
|
}
|