9 #ifndef FAIR_MQ_TOOLS_VERSION_H 10 #define FAIR_MQ_TOOLS_VERSION_H 24 const int fkMajor, fkMinor, fkPatch;
26 friend auto operator< (
const Version& lhs,
const Version& rhs) ->
bool {
return std::tie(lhs.fkMajor, lhs.fkMinor, lhs.fkPatch) < std::tie(rhs.fkMajor, rhs.fkMinor, rhs.fkPatch); }
27 friend auto operator> (
const Version& lhs,
const Version& rhs) ->
bool {
return rhs < lhs; }
28 friend auto operator<=(
const Version& lhs,
const Version& rhs) ->
bool {
return !(lhs > rhs); }
29 friend auto operator>=(
const Version& lhs,
const Version& rhs) ->
bool {
return !(lhs < rhs); }
30 friend auto operator==(
const Version& lhs,
const Version& rhs) ->
bool {
return std::tie(lhs.fkMajor, lhs.fkMinor, lhs.fkPatch) == std::tie(rhs.fkMajor, rhs.fkMinor, rhs.fkPatch); }
31 friend auto operator!=(
const Version& lhs,
const Version& rhs) ->
bool {
return !(lhs == rhs); }
32 friend auto operator<<(std::ostream& os,
const Version& v) -> std::ostream& {
return os << v.fkMajor <<
"." << v.fkMinor <<
"." << v.fkPatch; }
Tools for interfacing containers to the transport via polymorphic allocators.
Definition: DeviceRunner.h:23