c++ - memory allocation for static singleton class object -


this question has answer here:

for below singleton class memory taken (stack or global memroy)

class singleton {     public:          static singleton* get()         {             static singleton instance;             return &instance;         } }; 

instance located in static storage (or global call it).


Comments

Popular posts from this blog

c# - OpenXML hanging while writing elements -

php - regexp cyrillic filename not matches -

java - IntelliJ - No such instance method -