12 if (version.size() == 0) {
15 if (version.size() == 1) {
16 return Version{version[0], 0, 0};
18 if (version.size() == 2) {
19 return Version{version[0], version[1], 0};
21 if (version.size() == 3) {
22 return Version{version[0], version[1], version[2]};
28 std::stringstream stream;
std::string ToString() const
static std::optional< Version > FromVector(const std::vector< size_t > &version)