Answers for "generating unique id for an object in c++"

C++
0

generating unique id for an object in c++

int id = reinterpret_cast<int>(&obj);
Posted by: Guest on August-09-2021
0

generating unique id for an object in c++

int id = (int)&obj;
Posted by: Guest on August-09-2021

Code answers related to "generating unique id for an object in c++"

Browse Popular Code Answers by Language