Tuesday, October 30, 2018

c++ - Using std Namespace

There seem to be different views on using 'using' with respect to the std namespace.



Some say use ' using namespace std', other say don't but rather prefix std functions that are to be used with ' std::' whilst others say use something like this:



using std::string;
using std::cout;
using std::cin;
using std::endl;
using std::vector;


for all the std functions that are to be used.



What are the pros and cons of each?

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...