#include <algorithm>
#include <vector>

class C {
 public:
   class I {
    public:
      I(int i = 0) : _n(i) {}
      int  _n;   
   }; // I
}; // C


bool operator==(const C::I& b0, const C::I& b1) {
   return b0._n == b1._n;
}

int iFind(const std::vector<C::I>& vi, const C::I& i) {
   std::vector<C::I>::const_iterator  where = 
      std::find(vi.begin(), vi.end(), i);
   return (where != vi.end() ? where - vi.begin() : -1);
} // iFind

