+ 1
Namespaces in C++
is an unused namespace takes space in the memory at the time of compilation ? or it will be just declared logically like classes
1 Resposta
0
I do not believe a namespace consumes memory like a class.
If you include a large library or large namespace. It would cause larger overhead within the code.
example:
using namspace std;
//includes the ENTIRE standard library