hotspot/src/share/vm/utilities/growableArray.hpp
changeset 14385 959bbcc16725
parent 13728 882756847a04
child 19339 d247781beec7
equal deleted inserted replaced
14289:aec758622b4b 14385:959bbcc16725
   215     bool missed = !contains(elem);
   215     bool missed = !contains(elem);
   216     if (missed) append(elem);
   216     if (missed) append(elem);
   217     return missed;
   217     return missed;
   218   }
   218   }
   219 
   219 
   220   E at(int i) const {
   220   E& at(int i) {
       
   221     assert(0 <= i && i < _len, "illegal index");
       
   222     return _data[i];
       
   223   }
       
   224 
       
   225   E const& at(int i) const {
   221     assert(0 <= i && i < _len, "illegal index");
   226     assert(0 <= i && i < _len, "illegal index");
   222     return _data[i];
   227     return _data[i];
   223   }
   228   }
   224 
   229 
   225   E* adr_at(int i) const {
   230   E* adr_at(int i) const {