Changeset 888 for cpp/common/util-stl.h
- Timestamp:
- 07/22/19 01:15:38 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/util-stl.h
r840 r888 32 32 typename vector<T>::iterator it = find(v.begin(), v.end(), e); 33 33 if (it != v.end()) 34 return &*it - &v.front();34 return int(&*it - &v.front()); 35 35 return -1; 36 36 } … … 42 42 ~DeletingVector() 43 43 { 44 for (int i = vector.size() - 1; i >= 0; i--)44 for (int i = (int)vector.size() - 1; i >= 0; i--) 45 45 delete vector[i]; 46 46 }
Note: See TracChangeset
for help on using the changeset viewer.