1#ifndef OSMIUM_OSM_OBJECT_COMPARISONS_HPP
2#define OSMIUM_OSM_OBJECT_COMPARISONS_HPP
71 return lhs.type() == rhs.type() &&
139 return const_tie(lhs.type(), lhs.id() > 0, lhs.positive_id(), lhs.version()) <
140 const_tie(rhs.type(), rhs.id() > 0, rhs.positive_id(), rhs.version());
162 return const_tie(lhs.type(), lhs.id() > 0, lhs.positive_id(), rhs.version(),
163 ((lhs.timestamp().valid() && rhs.timestamp().valid()) ? rhs.timestamp() :
osmium::Timestamp())) <
164 const_tie(rhs.type(), rhs.id() > 0, rhs.positive_id(), lhs.version(),
165 ((lhs.timestamp().valid() && rhs.timestamp().valid()) ? lhs.timestamp() :
osmium::Timestamp()));
Definition: object.hpp:64
Definition: timestamp.hpp:175
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
std::tuple< const Ts &... > const_tie(const Ts &... args) noexcept
Definition: misc.hpp:52
int64_t object_id_type
Type for OSM object (node, way, or relation) IDs.
Definition: types.hpp:45
Definition: object_comparisons.hpp:87
bool operator()(const object_id_type lhs, const object_id_type rhs) const noexcept
Definition: object_comparisons.hpp:89
Definition: object_comparisons.hpp:50
bool operator()(const osmium::OSMObject *lhs, const osmium::OSMObject *rhs) const noexcept
Definition: object_comparisons.hpp:57
bool operator()(const osmium::OSMObject &lhs, const osmium::OSMObject &rhs) const noexcept
Definition: object_comparisons.hpp:52
Definition: object_comparisons.hpp:68
bool operator()(const osmium::OSMObject &lhs, const osmium::OSMObject &rhs) const noexcept
Definition: object_comparisons.hpp:70
bool operator()(const osmium::OSMObject *lhs, const osmium::OSMObject *rhs) const noexcept
Definition: object_comparisons.hpp:76
Definition: object_comparisons.hpp:159
bool operator()(const osmium::OSMObject &lhs, const osmium::OSMObject &rhs) const noexcept
Definition: object_comparisons.hpp:161
bool operator()(const osmium::OSMObject *lhs, const osmium::OSMObject *rhs) const noexcept
Definition: object_comparisons.hpp:169
Definition: object_comparisons.hpp:136
bool operator()(const osmium::OSMObject *lhs, const osmium::OSMObject *rhs) const noexcept
Definition: object_comparisons.hpp:144
bool operator()(const osmium::OSMObject &lhs, const osmium::OSMObject &rhs) const noexcept
Definition: object_comparisons.hpp:138
Definition: object_comparisons.hpp:116
bool operator()(const osmium::OSMObject &lhs, const osmium::OSMObject &rhs) const noexcept
Definition: object_comparisons.hpp:118
bool operator()(const osmium::OSMObject *lhs, const osmium::OSMObject *rhs) const noexcept
Definition: object_comparisons.hpp:123