Topic: Converting vector iterator to index
Author: "Victor Bazarov" <vAbazarov@dAnai.com>
Date: Mon, 30 Oct 2000 21:48:58 GMT Raw View
"Chuck Tichenor" <cbtichenor@home.com> wrote...
> Is there a safe and efficient way to convert a vector iterator to
> a vector index?
Subtract begin(). It's called "distance".
Victor
--
Please remove capital A's from my address when replying by mail
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]
[ Note that the FAQ URL has changed! Please update your bookmarks. ]
Author: "Chuck Tichenor" <cbtichenor@home.com>
Date: Mon, 30 Oct 2000 20:02:34 GMT Raw View
Is there a safe and efficient way to convert a vector iterator to
a vector index?
TIA
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]
[ Note that the FAQ URL has changed! Please update your bookmarks. ]