Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
semantic_version: Facilities For Working With Semvers

The semantic_version sub-package provides a facility for working with semantic version numbers.

The public header is

The Bazel target is

//:semantic_version

Semantic Versions

arene::base::semantic_version holds a version number with 3 parts: the major version, the minor version, and the patch version, like 15.1.7. The semantic part indicates that there is meaning to changes in the different parts of a version number, usually as described by the Semantic Versioning Specification.

The ordering comparison operators for arene::base::semantic_version handle the 3 parts in order, so 1.2.3 is less than 2.0.1, but greater than 1.1.9.

There are also functions to check for specific changes: