20.7 Name Spaces - the using
directive
- Dumps entire namespace (or selected names) into global namespace
- Avoids using fully qualified names
- Beware of conflicts
- To add entire namespace:
using namespace std;
- To pick which names to add:
using std::cout;
// Include only cout from the std namespace
- Do not put using statements in header (included)
files
prev
|top
|next