LeviLamina
Loading...
Searching...
No Matches
SemVersionBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5#include "mc/deps/core/sem_ver/SemVersionAnyVersionType.h"
6#include "mc/deps/core/string/StaticOptimizedString.h"
7
8template <typename T>
10public:
11 uint16_t mMajor;
12 uint16_t mMinor;
13 uint16_t mPatch;
14 bool mValidVersion;
15 bool mAnyVersion;
16 T mPreRelease;
17 T mBuildMeta;
18
19public:
20 MCAPI SemVersionBase operator=(SemVersionBase const&);
21 MCAPI explicit SemVersionBase(uint16_t, uint16_t, uint16_t, T, T);
22 MCAPI std::string asString() const;
23 MCAPI std::string_view getPreRelease() const;
24};
25
26template <typename T1, typename T2>
27MCAPI bool operator<(SemVersionBase<T1> const& lhs, SemVersionBase<T2> const& rhs);
28template <typename T1, typename T2>
29MCAPI bool operator==(SemVersionBase<T1> const& lhs, SemVersionBase<T2> const& rhs);
Definition SemVersionBase.h:9