L
lallous
Hello
file.h
#include <string>
#include <vector>
//spot1
class StringVec
{
private:
std::vector<std::string> list;
public:
void add(const std::string val);
};
etc...
Now, since "file1.h" will be used in other source code modules, it is not
good to put "using namespace std" @ spot1.
How can I then declare that StringVec class is using 'std' namespace so that
I don't write 'std::XXX' everytime in the class?
file.h
#include <string>
#include <vector>
//spot1
class StringVec
{
private:
std::vector<std::string> list;
public:
void add(const std::string val);
};
etc...
Now, since "file1.h" will be used in other source code modules, it is not
good to put "using namespace std" @ spot1.
How can I then declare that StringVec class is using 'std' namespace so that
I don't write 'std::XXX' everytime in the class?