Namespaces in C++ | Sololearn: Learn to code for FREE!
+ 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

1st Oct 2019, 9:09 AM
Sudo_root
1 Answer
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
5th Oct 2019, 6:57 PM
Manual
Manual - avatar