Simple and useful snippet that helps to make an unique identifier for any type in C++.

It uses a fact that function static member of a function is a part of template installation, hence it contains own, unique address.

 

 
0 Kudos
Don't
move!