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