position of element in vector

Just a general question. How should I get the position of an element stored in a 2D vector of strings?
By searching through each element until you find it.
How would I output the position of the element?
Hello, @see my previous comment in the "reversing a string" (1) topic e.g std::distance

(1) the OP meant reversing words according to space in latin-related langs, mostly english ; it would not work in many other latin-based languages.
Last edited on
@mmw

The little "connector" button at the top of a post (by the date) give you a like you can point people as!

mmw's post in thread "reversing a string"
http://www.cplusplus.com/forum/general/167129/#msg839762

Andy
Topic archived. No new replies allowed.