115:9be16e1c1e44 | 116:56ff19947607 |
---|---|
262 // | 262 // |
263 int find (const ValueType& needle) const | 263 int find (const ValueType& needle) const |
264 { | 264 { |
265 int i = 0; | 265 int i = 0; |
266 | 266 |
267 for (const ValueType & hay : *this) | 267 for (const ValueType& hay : *this) |
268 { | 268 { |
269 if (&hay == &needle) | 269 if (hay == needle) |
270 return i; | 270 return i; |
271 | 271 |
272 i++; | 272 i++; |
273 } | 273 } |
274 | 274 |