I just found some source codes, written in C++11. The code is like this:
inline Class& function() {
static Class x;
return x;
}
and then for using this function I faced:
function().app();
Is this function() implements the Singleton Pattern? How it is working? It seems strange to me.