iceoryx_doc
1.0.1
|
Unique ID depending on a type. If you would like to assign different types consistent unique ids use this class. Every types gets its own distinct set of ids starting with 0. If the types are the same the ids are the same. More...
#include <typed_unique_id.hpp>
Public Member Functions | |
TypedUniqueId () noexcept | |
the constructor creates an id which is greater than the previous created id | |
TypedUniqueId (InvalidId_t) noexcept | |
constructor which creates an invalid id More... | |
bool | isValid () const noexcept |
Unique ID depending on a type. If you would like to assign different types consistent unique ids use this class. Every types gets its own distinct set of ids starting with 0. If the types are the same the ids are the same.
[in] | T | type for which the unique ids should be generated |
|
inlinenoexcept |
constructor which creates an invalid id
we have to cast INVALID_UNIQUE_ID with static_cast<uint64_t> otherwise it will not link with gcc-7.x - gcc-10.x. Who knows why?!