The object is declared in header with external linkage and static duration: it lasts the entire duration of the program.
I am using Visual Studio. If I go to its declaration it is like,
__PURE_APPDOMAIN_GLOBAL extern _CRTDATA2 ostream cout, *_Ptr_cout;
I understand its external linkage, but how it is static duration?
[basic.stc.static]/1
: