A version number of three components.
More...
#include <vitrio/version.hpp>
|
| constexpr | version (std::uint32_t major, std::uint32_t minor, std::uint32_t patch) noexcept |
| | Construct a version from its components.
|
|
| version (const version &other)=default |
|
version & | operator= (const version &other)=default |
| constexpr std::uint32_t | get_major () const noexcept |
| | Get the major component.
|
| constexpr std::uint32_t | get_minor () const noexcept |
| | Get the minor component.
|
| constexpr std::uint32_t | get_patch () const noexcept |
| | Get the patch component.
|
|
|
constexpr bool | operator== (const version &lhs, const version &rhs) noexcept |
|
constexpr bool | operator!= (const version &lhs, const version &rhs) noexcept |
|
constexpr bool | operator< (const version &lhs, const version &rhs) noexcept |
|
constexpr bool | operator<= (const version &lhs, const version &rhs) noexcept |
|
constexpr bool | operator> (const version &lhs, const version &rhs) noexcept |
|
constexpr bool | operator>= (const version &lhs, const version &rhs) noexcept |
|
template<typename T> |
| std::basic_ostream< T > & | operator<< (std::basic_ostream< T > &os, const version &ver) |
A version number of three components.
Versions are ordered by their major component, then by their minor component, then by their patch component.
◆ version()
| vitrio::version::version |
( |
std::uint32_t | major, |
|
|
std::uint32_t | minor, |
|
|
std::uint32_t | patch ) |
|
constexprnoexcept |
Construct a version from its components.
- Parameters
-
| major | The major component. |
| minor | The minor component. |
| patch | The patch component. |
◆ get_major()
| std::uint32_t vitrio::version::get_major |
( |
| ) |
const |
|
constexprnoexcept |
Get the major component.
- Returns
- std::uint32_t The major component.
◆ get_minor()
| std::uint32_t vitrio::version::get_minor |
( |
| ) |
const |
|
constexprnoexcept |
Get the minor component.
- Returns
- std::uint32_t The minor component.
◆ get_patch()
| std::uint32_t vitrio::version::get_patch |
( |
| ) |
const |
|
constexprnoexcept |
Get the patch component.
- Returns
- std::uint32_t The patch component.
The documentation for this class was generated from the following file: