23 static constexpr int kInvalidId{-1};
30 std::strong_ordering operator<=>(
const SubscriptionId& other)
const {
return id_ <=> other.id_; }
32 bool operator==(
const SubscriptionId& other)
const {
return id_ == other.id_; }
37 operator bool()
const {
return id_ != kInvalidId; }
42 int getId()
const {
return id_; }
51struct std::hash<
creos::SubscriptionId> {
52 std::size_t operator()(
const creos::SubscriptionId&
id)
const {
return std::hash<int>{}(
id.getId()); }
This type holds an subscription ID.
Definition subscription.hpp:22
int getId() const
Get the internal subscription ID.
Definition subscription.hpp:42
The main namespace for the CreOS client library.