Re: vectors

Avi Drissman <avi-wYYLmqtpiAJWk0Htik3J/[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Sat, Dec 5, 2009 at 12:59 PM, ML <[email protected]> wrote:

> Or can I just do this when I actually declare and use the vector each time:
> "using std::vector <type> vector_name"
>
>
"using" is a one time declaration:

using std::vector;
using std::list;

If you want to qualify each time, you can. Just don't use "using":

std::vector<std::list<int> > a;

You might want to read up on namespaces; this is pretty standard stuff
nowadays.

Avi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.