A bit new to C++ and was wondering if someone can clarify something for me?
So I know that "using namespace xxx" tells the compiler to look in namespace xxx for a function if that function doesn't exist in my source code.
E.g This tells it to look in namespace std for cout
1 2 3 4 5 6
#include <iostream>
usingnamespace std;
int main() {
cout "Hello";
}
But why don't we need a namespace for say iomanip? If the compiler doesn't find a function (e.g setprecision()), how would it know where to look for it?