2 ms·
Because it imports literally everything into your current scope, and the standard library types are named in such a way that they will likely conflict with code
by saagarjha 6y ago
Because it imports literally everything into your current scope, and the standard library types are named in such a way that they will likely conflict with code you write. Named a variable “min” or “max”? Function called “list”? You’re going to cause problems for yourself.
Plus, using std:: is generally a good reminder that you’re using the standard library types and not some homegrown facsimile of that type, as is common in many C++ projects.