I have a 97 Honda Civic that will occasionally die in neutral. This is what I have done so far:


Replace both O2 sensors
Replace MAP sensor
Replace Air filter
Added Lucas treatment to fuel tank 


Even after the above changes, occasionally when coasting in neutral the rpm's will eventually drop to 0 and the engine will die. It starts back up just fine. My engine and fuel mileage have definitively improved with all the changes, especially after using Lucas.


Question: Reverse iteration from a given map iterator
Answer: Converting an iterator to a reverse iterator via the constructor should work fine, e.g. std::map&lt;K, V&gt;::reverse_iterator rit(mypos).

A minimal example using std::vector:

#include &lt;vector&gt;
#include &lt;iostream&gt;
#include &lt;algorithm&gt;

int main() {
  typedef std::vector&lt;int&gt; intVec;
  intVec vec;
  for(int i = 0; i &lt; 20; ++i) vec.push_back(i);

  for(intVec::reverse_iterator it(std::find(vec.begin(), vec.end(), 10));
      it != vec.rend(); it++)
    std::cout &lt;&lt; *it;
}