continues compiling happily.
So, if inside the <iostream> header, an instance of ostream is declared named cout...
Oh, i never knew an object could be declared. I looked in my iostream header file and i found this:
Code:
#ifndef _CPP_IOSTREAM
#define _CPP_IOSTREAM 1
#pragma GCC system_header
#include <bits/c++config.h>
#include <ostream>
#include <istream>
namespace std
{
extern istream cin;
extern ostream cout;
extern ostream cerr;
extern ostream clog;
#ifdef _GLIBCPP_USE_WCHAR_T
extern wistream wcin;
extern wostream wcout;
extern wostream wcerr;
extern wostream wclog;
#endif
// For construction of filebuffers for cout, cin, cerr, clog et. al.
static ios_base::Init __ioinit;
} // namespace std
#endif
is the code in red declaring iostream's objects?