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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -