Hi there.
For example I have an array with about 10 elements in it.
std::deque<int> d;
front_inserter(d) = 100;
front_inserter(d) = 200;
front_inserter(d) = 300;
...
front_inserter(d) = 900;
front_inserter(d) = 1000;
Question: how to find 900
element, without using []
access? If the size of the massive will be changes, for example to 123, how to find 122 element?
PS: I don't want to use []
because this method does not perform d[-1]
check...
Thanks.